\Apache_Solr_HttpTransport_Response
Represents the required pieces of an HTTP response provided by HTTP transport implementations and then consumed by the Apache_Solr_Response class which provides decoding
Synopsis
class Apache_Solr_HttpTransport_Response
{
- // members
- private static array $_defaultStatusMessages = ;
- private $_statusCode;
- private $_statusMessage;
- private $_mimeType;
- private $_encoding;
- private $_responseBody;
- // methods
- public static string getDefaultStatusMessage()
- public void __construct()
- public integer getStatusCode()
- public string getStatusMessage()
- public string getMimeType()
- public string getEncoding()
- public string getBody()
Members
private
- $_defaultStatusMessages
—
array
Status Messages indexed by Status Code Obtained from: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html - $_encoding
—
string
The response's character encoding - $_mimeType
—
string
The response's mime type - $_responseBody
—
string
The response's data - $_statusCode
—
integer
The response's HTTP status code - $_statusMessage
—
string
The response's HTTP status message
Methods
public
- __construct() — Construct a HTTP transport response
- getBody() — Get the raw response body
- getDefaultStatusMessage() — Get the HTTP status message based on status code
- getEncoding() — Get the charset encoding of the response body.
- getMimeType() — Get the mimetype of the response body
- getStatusCode() — Get the status code of the response
- getStatusMessage() — Get the status message of the response