프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$body | string | ||
$curlInfo | array | ||
$headers | array | ||
$httpVersion | |||
$status | array |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
setStatus ( string | array $status ) |