Property | Type | Description | |
---|---|---|---|
$body | string | ||
$curlInfo | array | ||
$headers | array | ||
$httpVersion | |||
$status | array |
Method | Description | |
---|---|---|
__construct ( string | array $status, array $headers = [], string $body = null, array $curlInfo = [] ) | ||
fromArray ( array $response ) : |
Creates a new Response from a specified array. | |
getBody ( ) : string | ||
getContentType ( ) | ||
getCurlInfo ( $option = null ) : array | ||
getHeader ( $key ) | ||
getHeaders ( ) : array | ||
getHttpVersion ( ) : mixed | ||
getStatusCode ( ) : string | ||
getStatusMessage ( ) : string | ||
toArray ( ) : array | Returns an array representation of this Response. |
Method | Description | |
---|---|---|
setStatus ( string | array $status ) |