Zend Framework  3.0
Static Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
ClientStatic Class Reference

Http static client. More...

Static Public Member Functions

static get ($url, $query=[], $headers=[], $body=null, $clientOptions=null)
 HTTP GET METHOD (static)
 
static post ($url, $params, $headers=[], $body=null, $clientOptions=null)
 HTTP POST METHOD (static)
 

Static Protected Member Functions

static getStaticClient ($options=null)
 Get the static HTTP client.
 

Static Protected Attributes

static $client
 

Detailed Description

Http static client.

Member Function Documentation

static get (   $url,
  $query = [],
  $headers = [],
  $body = null,
  $clientOptions = null 
)
static

HTTP GET METHOD (static)

Parameters
string$url
array$query
array$headers
mixed$body
array | Traversable$clientOptions
Returns
Response|bool
static getStaticClient (   $options = null)
staticprotected

Get the static HTTP client.

Parameters
array | Traversable$options
Returns
Client
static post (   $url,
  $params,
  $headers = [],
  $body = null,
  $clientOptions = null 
)
static

HTTP POST METHOD (static)

Parameters
string$url
array$params
array$headers
mixed$body
array | Traversable$clientOptions
Exceptions
Exception\InvalidArgumentException
Returns
Response|bool

Member Data Documentation

$client
staticprotected