Method | Description | |
---|---|---|
__construct ( integer $code = 200, array $headers = [], Icicle\Stream\ReadableStream $stream = null, string $reason = null, string $protocol = '1.1' ) | ||
getCookie ( string $name ) | ||
getCookies ( ) : array | ||
getReasonPhrase ( ) : string | ||
getStatusCode ( ) : integer | ||
hasCookie ( string $name ) : boolean | ||
withAddedHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
withCookie ( string $name, $value = '', integer $expires, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = false ) : Icicle\Http\Message\Response | ||
withHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
withStatus ( integer $code, string $reason = null ) : Icicle\Http\Message\Response | ||
withoutCookie ( string $name ) : Icicle\Http\Message\Response | ||
withoutHeader ( string $name ) : Icicle\Http\Message\Message |
Method | Description | |
---|---|---|
filterReason ( string $reason = null ) : string | ||
validateStatusCode ( integer $code ) : integer |
Method | Description | |
---|---|---|
setCookiesFromHeaders ( ) | Sets cookies based on headers. | |
setHeadersFromCookies ( ) | Sets headers based on cookie values. |
protected filterReason ( string $reason = null ) : string | ||
$reason | string | |
return | string |
protected validateStatusCode ( integer $code ) : integer | ||
$code | integer | |
return | integer |
public withAddedHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
$name | string | |
return | Icicle\Http\Message\Message |
public withCookie ( string $name, $value = '', integer $expires, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = false ) : Icicle\Http\Message\Response | ||
$name | string | |
$expires | integer | |
$path | string | |
$domain | string | |
$secure | boolean | |
$httpOnly | boolean | |
return | Icicle\Http\Message\Response |
public withHeader ( string $name, $value ) : Icicle\Http\Message\Message | ||
$name | string | |
return | Icicle\Http\Message\Message |
public withStatus ( integer $code, string $reason = null ) : Icicle\Http\Message\Response | ||
$code | integer | |
$reason | string | |
return | Icicle\Http\Message\Response |
public withoutCookie ( string $name ) : Icicle\Http\Message\Response | ||
$name | string | |
return | Icicle\Http\Message\Response |
public withoutHeader ( string $name ) : Icicle\Http\Message\Message | ||
$name | string | |
return | Icicle\Http\Message\Message |