Method | Description | |
---|---|---|
__construct ( $obj_response = null ) | ||
getConfig ( string | null $option = null ) : mixed | Get a client configuration option. | |
getPostedParams ( ) | ||
getPostedUrl ( ) | ||
post ( $str_url, array $arr_params ) : |
Pretend to do a POST request | |
request ( string $method, string | Psr\Http\Message\UriInterface $uri, array $options = [] ) : Psr\Http\Message\ResponseInterface | Create and send an HTTP request. | |
requestAsync ( string $method, string | Psr\Http\Message\UriInterface $uri, array $options = [] ) : GuzzleHttp\Promise\PromiseInterface | Create and send an asynchronous HTTP request. | |
send ( Psr\Http\Message\RequestInterface $request, array $options = [] ) : Psr\Http\Message\ResponseInterface | Send an HTTP request. | |
sendAsync ( Psr\Http\Message\RequestInterface $request, array $options = [] ) : GuzzleHttp\Promise\PromiseInterface | Asynchronously send an HTTP request. |
public request ( string $method, string | Psr\Http\Message\UriInterface $uri, array $options = [] ) : Psr\Http\Message\ResponseInterface | ||
$method | string | HTTP method. |
$uri | string | Psr\Http\Message\UriInterface | URI object or string. |
$options | array | Request options to apply. |
return | Psr\Http\Message\ResponseInterface |
public requestAsync ( string $method, string | Psr\Http\Message\UriInterface $uri, array $options = [] ) : GuzzleHttp\Promise\PromiseInterface | ||
$method | string | HTTP method |
$uri | string | Psr\Http\Message\UriInterface | URI object or string. |
$options | array | Request options to apply. |
return | GuzzleHttp\Promise\PromiseInterface |
public sendAsync ( Psr\Http\Message\RequestInterface $request, array $options = [] ) : GuzzleHttp\Promise\PromiseInterface | ||
$request | Psr\Http\Message\RequestInterface | Request to send |
$options | array | Request options to apply to the given request and to the transfer. |
return | GuzzleHttp\Promise\PromiseInterface |