Свойство | Type | Description | |
---|---|---|---|
$body | null | string | ||
$headers | |||
$reason_phrase | null | string | ||
$status_code | integer |
Méthode | Description | |
---|---|---|
__construct ( $status_code = 200, $headers = [], $body = null, $version = "1.1" ) | ||
getBody ( ) : string | null | ||
getReasonPhrase ( ) : string | ||
getStatusCode ( ) : integer | ||
sendBody ( ) | ||
sendHeaders ( ) | ||
sendHttpHeader ( ) | ||
setBody ( $body ) | ||
setHeader ( $header, $value ) | ||
setHeaders ( array $headers ) | ||
setReasonPhrase ( $phrase = null ) | ||
setStatusCode ( $status_code ) |
public __construct ( $status_code = 200, $headers = [], $body = null, $version = "1.1" ) |