프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$code | integer | The HTTP code resulting from the request. | |
$content | string | The content of the response. | |
$headers | array | Request's headers. |
메소드 | 설명 | |
---|---|---|
__construct ( string $content, integer $code, array $headers = [] ) | The primary content of the response. | |
__toString ( ) : string | Returns the content of the response as a string. | |
getCode ( ) : integer | Returns the code associated with the response. | |
getHeader ( string $name ) : string | null | Return header's value by key. | |
getHeaders ( ) : array | Return array of header from response in format header key => header value. | |
hasHeader ( string $name ) : boolean | Check if header key is present |
public __toString ( ) : string | ||
리턴 | string |
public getHeaders ( ) : array | ||
리턴 | array |