Class Client
HTTP client
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Http\Client implements Guzzle\Http\ClientInterface
Direct known subclasses
Guzzle\Service\Client
public static
array
|
|
public
|
#
__construct( string $baseUrl = '', array|
Client constructor |
final public
|
#
setConfig( array|
Set the configuration object to use with the client |
final public
mixed|
|
|
final public
|
#
setSslVerification( string|boolean $certificateAuthority = true, boolean $verifyPeer = true, integer $verifyHost = 2 )
Set SSL verification options. |
public
|
|
public
|
#
setDefaultHeaders( array|
Set the default HTTP headers to add to each request created by the client |
public
string
|
#
expandTemplate( string $template, array $variables = null )
Expand a URI template using client configuration data |
public
|
#
setUriTemplate(
Set the URI template expander to use with the client |
public
|
|
public
|
#
createRequest( string $method = Guzzle\Http\RequestInterface::GET, string|array $uri = null, array|
Create and return a new |
public
string|null
|
#
getBaseUrl( boolean $expand = true )
Get the client's base URL as either an expanded or raw URI template |
public
|
|
public
|
#
setUserAgent( string $userAgent, boolean $includeDefault = false )
Set the User-Agent header to be used on all requests from the client |
public
string
|
|
public
|
#
get( string|array $uri = null, array|
Create a GET request for the client |
public
|
#
head( string|array $uri = null, array|
Create a HEAD request for the client |
public
EntityEnclosingRequestInterface
|
#
delete( string|array $uri = null, array|
Create a DELETE request for the client |
public
EntityEnclosingRequestInterface
|
#
put( string|array $uri = null, array|
Create a PUT request for the client |
public
EntityEnclosingRequestInterface
|
#
patch( string|array $uri = null, array|
Create a PATCH request for the client |
public
EntityEnclosingRequestInterface
|
#
post( string|array $uri = null, array|
Create a POST request for the client |
public
|
|
public
array
|
|
public
|
#
setCurlMulti(
Set a curl multi object to be used internally by the client for transferring requests. |
public
|
#
getCurlMulti( )
Get the curl multi object to be used internally by the client for transferring requests. |
public
|
#
setRequestFactory(
Set the request factory to use with the client when creating requests |
public
string
|
#
preparePharCacert( boolean $md5Check = true )
Copy the cacert.pem file from the phar if it is not in the temp folder and validate the MD5 checksum |
protected
|
#
prepareRequest(
Prepare a request to be sent from the Client by adding client specific behaviors and properties to the request. |
protected
|
addSubscriber(),
dispatch(),
getEventDispatcher(),
setEventDispatcher()
|
string |
REQUEST_PARAMS
|
'request.params' |
|
string |
CURL_OPTIONS
|
'curl.options' |
|
string |
SSL_CERT_AUTHORITY
|
'ssl.certificate_authority' |
|
string |
DISABLE_REDIRECTS
|
|
CREATE_REQUEST,
HTTP_DATE
|
protected
|
$defaultHeaders |
|
#
Default HTTP headers to set on each request |
protected
string
|
$userAgent |
|
#
The user agent string to set on each request |
protected
|
$requestFactory |
|
#
Request factory used by the client |
$eventDispatcher
|