Method | Description | |
---|---|---|
__construct ( ) | Initialize client. | |
getBody ( ) : string | Get response body. | |
getHeaders ( ) : array | Get all response headers. | |
send ( ) | Send the request. | |
setBody ( string $body ) | Set request body. |
public getHeaders ( ) : array | ||
return | array | Associative array with $header => $value (value can be an array if it hasn't a single value) |