class Response

Guzzle HTTP response object

Hierarchy

Expanded class hierarchy of Response

2 files declare their use of Response

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 15

Namespace

Guzzle\Http\Message
View source

Members

Namesort descending Modifiers Type Description Overrides
AbstractMessage::$cacheControl private property
AbstractMessage::$headers protected property
AbstractMessage::$params protected property
AbstractMessage::$protocolVersion protected property
AbstractMessage::addCacheControlDirective public function Add a Cache-Control directive on the message Overrides MessageInterface::addCacheControlDirective
AbstractMessage::addHeader public function Add a header to an existing collection of headers. Overrides MessageInterface::addHeader
AbstractMessage::addHeaders public function Add and merge in an array of HTTP headers. Overrides MessageInterface::addHeaders
AbstractMessage::changedHeader protected function Check to see if the modified headers need to reset any of the managed headers like cache-control 1
AbstractMessage::getCacheControlDirective public function Get a Cache-Control directive from the message Overrides MessageInterface::getCacheControlDirective
AbstractMessage::getHeader public function Retrieve an HTTP header by name. Performs a case-insensitive search of all headers. Overrides MessageInterface::getHeader
AbstractMessage::getHeaderLines public function Get an array of message header lines Overrides MessageInterface::getHeaderLines
AbstractMessage::getHeaders public function Get all headers as a collection Overrides MessageInterface::getHeaders
AbstractMessage::getParams public function Get application and plugin specific parameters set on the message. Overrides MessageInterface::getParams
AbstractMessage::getTokenizedHeader public function Get a tokenized header as a Collection Overrides MessageInterface::getTokenizedHeader
AbstractMessage::hasCacheControlDirective public function Check if the message has a Cache-Control directive Overrides MessageInterface::hasCacheControlDirective
AbstractMessage::hasHeader public function Check if the specified header is present. Overrides MessageInterface::hasHeader
AbstractMessage::parseCacheControlDirective private function Parse the Cache-Control HTTP header into an array
AbstractMessage::rebuildCacheControlDirective private function Rebuild the Cache-Control HTTP header using the user-specified values
AbstractMessage::removeCacheControlDirective public function Remove a Cache-Control directive from the message Overrides MessageInterface::removeCacheControlDirective
AbstractMessage::removeHeader public function Remove a specific HTTP header. Overrides MessageInterface::removeHeader
AbstractMessage::setHeader public function Set an HTTP header Overrides MessageInterface::setHeader
AbstractMessage::setHeaders public function Overwrite all HTTP headers with the supplied array of headers Overrides MessageInterface::setHeaders
AbstractMessage::setTokenizedHeader public function Set a tokenized header on the request that implodes a Collection of data into a string separated by a token. Overrides MessageInterface::setTokenizedHeader
Response::$body protected property
Response::$cacheResponseCodes protected property
Response::$info protected property
Response::$previous protected property
Response::$protocol protected property
Response::$reasonPhrase protected property
Response::$request protected property
Response::$statusCode protected property
Response::$statusTexts private static property
Response::canCache public function Check if the response can be cached
Response::canValidate public function Check if the response can be validated against the origin server using a conditional GET request.
Response::fromMessage public static function Create a new Response based on a raw response message
Response::getAcceptRanges public function Get the Accept-Ranges HTTP header
Response::getAge public function Get the Age HTTP header
Response::getAllow public function Get the Allow HTTP header
Response::getBody public function Get the response entity body
Response::getCacheControl public function Get the Cache-Control HTTP header
Response::getConnection public function Get the Connection HTTP header
Response::getContentDisposition public function Get the Content-Disposition HTTP header
Response::getContentEncoding public function Get the Content-Encoding HTTP header
Response::getContentLanguage public function Get the Content-Language HTTP header
Response::getContentLength public function Get the Content-Length HTTP header
Response::getContentLocation public function Get the Content-Location HTTP header
Response::getContentMd5 public function Get the Content-MD5 HTTP header
Response::getContentRange public function Get the Content-Range HTTP header
Response::getContentType public function Get the Content-Type HTTP header
Response::getDate public function Get the Date HTTP header
Response::getEtag public function Get the ETag HTTP header
Response::getExpires public function Get the Expires HTTP header
Response::getFreshness public function Get the freshness of the response by returning the difference of the maximum lifetime of the response and the age of the response (max-age - age).
Response::getInfo public function Get a cURL transfer information
Response::getLastModified public function Get the Last-Modified HTTP header
Response::getLocation public function Get the Location HTTP header
Response::getMaxAge public function Gets the number of seconds from the current time in which this response is still considered fresh
Response::getMessage public function Get the entire response as a string
Response::getPragma public function Get the Pragma HTTP header
Response::getPreviousResponse public function Get the previous response (e.g. Redirect response)
Response::getProtocol public function Get the protocol used for the response (e.g. HTTP)
Response::getProtocolVersion public function Get the HTTP protocol version
Response::getProxyAuthenticate public function Get the Proxy-Authenticate HTTP header
Response::getRawHeaders public function Get the the raw message headers as a string Overrides MessageInterface::getRawHeaders
Response::getReasonPhrase public function Get the response reason phrase- a human readable version of the numeric status code
Response::getRequest public function Get the request object (or null) that is associated with this response
Response::getRetryAfter public function Get the Retry-After HTTP header
Response::getServer public function Get the Server HTTP header
Response::getSetCookie public function Get the Set-Cookie HTTP header
Response::getStatusCode public function Get the response status code
Response::getTrailer public function Get the Trailer HTTP header
Response::getTransferEncoding public function Get the Transfer-Encoding HTTP header
Response::getVary public function Get the Vary HTTP header
Response::getVia public function Get the Via HTTP header
Response::getWarning public function Get the Warning HTTP header
Response::getWwwAuthenticate public function Get the WWW-Authenticate HTTP header
Response::isClientError public function Checks if HTTP Status code is a Client Error (4xx)
Response::isContentType public function Checks if the Content-Type is of a certain type. This is useful if the Content-Type header contains charset information and you need to know if the Content-Type matches a particular type.
Response::isError public function Checks if HTTP Status code is Server OR Client Error (4xx or 5xx)
Response::isFresh public function Check if the response is considered fresh.
Response::isInformational public function Checks if HTTP Status code is Information (1xx)
Response::isMethodAllowed public function Check if an HTTP method is allowed by checking the Allow response header
Response::isRedirect public function Checks if HTTP Status code is a Redirect (3xx)
Response::isServerError public function Checks if HTTP Status code is Server Error (5xx)
Response::isSuccessful public function Checks if HTTP Status code is Successful (2xx | 304)
Response::json public function Parse the JSON response body and return an array
Response::setBody public function Set the response entity body
Response::setInfo public function Set the transfer information
Response::setPreviousResponse public function Set the previous response
Response::setProtocol public function Set the protocol and protocol version of the response
Response::setRequest public function Set the request object associated with the response
Response::setStatus public function Set the response status
Response::xml public function Parse the XML response body and return a SimpleXMLElement
Response::__construct public function Construct the response
Response::__toString public function Convert the response object to a string