Http static client

package Default

 Methods

HTTP GET METHOD (static)

get(string $url, array $query = array(), array $headers = array(), mixed $body = null, array|\Zend\Http\Traversable $clientOptions = null) : \Zend\Http\Response | boolean
Static

Parameters

$url

string

$query

array

$headers

array

$body

mixed

$clientOptions

array\Zend\Http\Traversable

Returns

\Zend\Http\Responseboolean

HTTP POST METHOD (static)

post(string $url, array $params, array $headers = array(), mixed $body = null, array|\Zend\Http\Traversable $clientOptions = null) : \Zend\Http\Response | boolean
Static

Parameters

$url

string

$params

array

$headers

array

$body

mixed

$clientOptions

array\Zend\Http\Traversable

Exceptions

\Zend\Http\Exception\InvalidArgumentException

Returns

\Zend\Http\Responseboolean

Get the static HTTP client

getStaticClient(array|\Zend\Http\Traversable $options = null) : \Zend\Http\Client
Static

Parameters

$options

array\Zend\Http\Traversable

Returns

\Zend\Http\Client

 Properties

 

$client

$client : \Zend\Http\Client

Default

Static