Property | Type | Description | |
---|---|---|---|
$body | string | ||
$client | Guzzle\Http\Client | ||
$headers | Associative array with 'header' => 'value' | ||
$host | string | ||
$method | string | ||
$request | Guzzle\Http\Message\Request | ||
$resource | string | ||
$response | Guzzle\Http\Message\Response | ||
$sent | boolean |
Method | Description | |
---|---|---|
__construct ( ) | Instanciate a client. | |
getBody ( ) : string | Get response body. | |
getHeaders ( ) : array | Get all response headers. | |
getStatusCode ( ) : string | Get response status code. | |
getStatusMessage ( ) : string | Get response status message. | |
send ( ) | Send the request. | |
setBody ( string $body ) | Set request body. | |
setHeader ( string $header, $value ) | Set request header. | |
setHost ( string $host ) | Set request host. | |
setMethod ( string $method ) | Set request method. | |
setResource ( string $resource ) | Set request resource url. |
Method | Description | |
---|---|---|
getResponse ( ) : Guzzle\Http\Message\Response | Get reponse. |
public getHeaders ( ) : array | ||
return | array | Associative array with $header => $value (value can be an array if it hasn't a single value) |
protected getResponse ( ) : Guzzle\Http\Message\Response | ||
return | Guzzle\Http\Message\Response |
public getStatusCode ( ) : string | ||
return | string |
public getStatusMessage ( ) : string | ||
return | string |
public setResource ( string $resource ) | ||
$resource | string |
protected Request,Guzzle\Http\Message $request | ||
return | Guzzle\Http\Message\Request |
protected Response,Guzzle\Http\Message $response | ||
return | Guzzle\Http\Message\Response |