Class shardimage\shardimagephpapi\web\parsers\RawResponse
Inheritance | shardimage\shardimagephpapi\web\parsers\RawResponse » shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
---|
Raw HTTP response object.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$body | string | Body | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
$boundary | string | Boundary of a multipart message | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
$customHeaders | string[] | Custom headers (e.g. X-Some-Header) | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
$headers | string[] | Headers | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
$message | string | HTTP message | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
$parts | string[] | Body segments of a multipart message | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
$protocol | string | HTTP protocol | shardimage\shardimagephpapi\web\parsers\RawResponse |
$statusCode | string | HTTP status code | shardimage\shardimagephpapi\web\parsers\RawResponse |
$statusText | string | HTTP status | shardimage\shardimagephpapi\web\parsers\RawResponse |
$type | string | Content type | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$service | shardimage\shardimagephpapi\services\BaseService | Service | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Creates and parses a HTTP message. | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
isFile() | Returns whether the message is a file. | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
Protected Methods
Method | Description | Defined By |
---|---|---|
buildHeaders() | Builds the headers string from a PSR message. | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
decodeMessage() | Decodes the HTTP response. | shardimage\shardimagephpapi\web\parsers\RawResponse |
getBoundary() | Returns the boundary of a multipart message. | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
getParts() | Returns the body segments of a multipart message. | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
getType() | Returns the content type. | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
parse() | Parses the HTTP response. | shardimage\shardimagephpapi\web\parsers\RawResponse |
parseHeaders() | Parses the headers into arrays. | shardimage\shardimagephpapi\web\parsers\BaseRawMessage |
Property Details
HTTP protocol
HTTP status code
HTTP status
Method Details
Decodes the HTTP response.
protected void decodeMessage ( $message ) | ||
$message | string|\Psr\Http\Message\ResponseInterface |
Parses the HTTP response.
protected void parse ( ) |