Final Class Guzzle\Http\StaticClient

InheritanceGuzzle\Http\StaticClient

Simplified interface to Guzzle that does not require a class to be instantiated

Public Methods

Hide inherited methods

MethodDescriptionDefined By
delete() Send a DELETE request Guzzle\Http\StaticClient
get() Send a GET request Guzzle\Http\StaticClient
head() Send a HEAD request Guzzle\Http\StaticClient
mount() Mount the client to a simpler class name for a specific client Guzzle\Http\StaticClient
options() Send an OPTIONS request Guzzle\Http\StaticClient
patch() Send a PATCH request Guzzle\Http\StaticClient
post() Send a POST request Guzzle\Http\StaticClient
put() Send a PUT request Guzzle\Http\StaticClient
request() Guzzle\Http\StaticClient

Method Details

delete() public static method

Send a DELETE request

See also \Guzzle\Http\Guzzle::request for a list of available options.

public static Guzzle\Http\Message\Response delete ( $url, $options = [] )
$url string

URL of the request

$options array

Array of request options

get() public static method

Send a GET request

See also \Guzzle\Http\Guzzle::request for a list of available options.

public static Guzzle\Http\Message\Response get ( $url, $options = [] )
$url string

URL of the request

$options array

Array of request options

head() public static method

Send a HEAD request

See also \Guzzle\Http\Guzzle::request for a list of available options.

public static Guzzle\Http\Message\Response head ( $url, $options = [] )
$url string

URL of the request

$options array

Array of request options

mount() public static method

Mount the client to a simpler class name for a specific client

public static void mount ( $className 'Guzzle', Guzzle\Http\ClientInterface $client null )
$className string

Class name to use to mount

$client Guzzle\Http\ClientInterface

Client used to send requests

options() public static method

Send an OPTIONS request

See also \Guzzle\Http\Guzzle::request for a list of available options.

public static Guzzle\Http\Message\Response options ( $url, $options = [] )
$url string

URL of the request

$options array

Array of request options

patch() public static method

Send a PATCH request

See also \Guzzle\Http\Guzzle::request for a list of available options.

public static Guzzle\Http\Message\Response patch ( $url, $options = [] )
$url string

URL of the request

$options array

Array of request options

post() public static method

Send a POST request

See also \Guzzle\Http\Guzzle::request for a list of available options.

public static Guzzle\Http\Message\Response post ( $url, $options = [] )
$url string

URL of the request

$options array

Array of request options

put() public static method

Send a PUT request

See also \Guzzle\Http\Guzzle::request for a list of available options.

public static Guzzle\Http\Message\Response put ( $url, $options = [] )
$url string

URL of the request

$options array

Array of request options

request() public static method

public static Guzzle\Http\Message\Response|Guzzle\Stream\Stream request ( $method, $url, $options = [] )
$method string

HTTP request method (GET, POST, HEAD, DELETE, PUT, etc)

$url string

URL of the request

$options array

Options to use with the request. See: Guzzle\Http\Message\RequestFactory::applyOptions()