Http static client

 Methods

HTTP GET METHOD (static)

get(string $url, array $query, array $headers, mixed $body) : \Zend\Http\Response | bool

Parameters

$url

string

$query

array

$headers

array

$body

mixed

Returns

HTTP POST METHOD (static)

post(string $url, array $params, array $headers, mixed $body) : \Zend\Http\Response | bool

Parameters

$url

string

$params

array

$headers

array

$body

mixed

Exceptions

\Zend\Http\Exception\InvalidArgumentException

Returns

Get the static HTTP client

getStaticClient() : \Zend\Http\Client

 Properties

 

$client

$client