$client
$client : \Guzzle\Http\Client
Simplified interface to Guzzle that does not require a class to be instantiated
$client : \Guzzle\Http\Client
mount(string $className = 'Guzzle', \Guzzle\Http\ClientInterface $client = null)
Mount the client to a simpler class name for a specific client
string | $className | Class name to use to mount |
\Guzzle\Http\ClientInterface | $client | Client used to send requests |
request(string $method, string $url, array $options = array()) : \Guzzle\Http\Message\Response|\Guzzle\Stream\Stream
string | $method | HTTP request method (GET, POST, HEAD, DELETE, PUT, etc) |
string | $url | URL of the request |
array | $options | Options to use with the request. See: Guzzle\Http\Message\RequestFactory::applyOptions() |
get(string $url, array $options = array()) : \Guzzle\Http\Message\Response
Send a GET request
string | $url | URL of the request |
array | $options | Array of request options |
head(string $url, array $options = array()) : \Guzzle\Http\Message\Response
Send a HEAD request
string | $url | URL of the request |
array | $options | Array of request options |
delete(string $url, array $options = array()) : \Guzzle\Http\Message\Response
Send a DELETE request
string | $url | URL of the request |
array | $options | Array of request options |
post(string $url, array $options = array()) : \Guzzle\Http\Message\Response
Send a POST request
string | $url | URL of the request |
array | $options | Array of request options |
put(string $url, array $options = array()) : \Guzzle\Http\Message\Response
Send a PUT request
string | $url | URL of the request |
array | $options | Array of request options |
patch(string $url, array $options = array()) : \Guzzle\Http\Message\Response
Send a PATCH request
string | $url | URL of the request |
array | $options | Array of request options |
options(string $url, array $options = array()) : \Guzzle\Http\Message\Response
Send an OPTIONS request
string | $url | URL of the request |
array | $options | Array of request options |