PHP Интерфейс Icicle\Http\Message\Response

Наследование: extends Icicle\Http\Message\Message
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getCookie ( string $name ) : Icicle\Http\Message\Cookie\MetaCookie | null
getCookies ( ) : array
getReasonPhrase ( ) : string Returns the reason phrase describing the status code.
getStatusCode ( ) : integer Returns the response status code.
hasCookie ( string $name ) : boolean
withCookie ( string $name, string $value = '', integer $expires, string $path = '', string $domain = '', boolean $secure = false, boolean $httpOnly = false ) : Icicle\Http\Message\Response
withStatus ( integer $code, string $reason = '' ) : Icicle\Http\Message\Response Returns a new instance with the given status.
withoutCookie ( string $name ) : Icicle\Http\Message\Response

Описание методов

getCookie() публичный Метод

public getCookie ( string $name ) : Icicle\Http\Message\Cookie\MetaCookie | null
$name string
Результат Icicle\Http\Message\Cookie\MetaCookie | null

getCookies() публичный Метод

public getCookies ( ) : array
Результат array

getReasonPhrase() публичный Метод

Returns the reason phrase describing the status code.
public getReasonPhrase ( ) : string
Результат string

getStatusCode() публичный Метод

Returns the response status code.
public getStatusCode ( ) : integer
Результат integer

hasCookie() публичный Метод

public hasCookie ( string $name ) : boolean
$name string
Результат boolean

withCookie() публичный Метод

public withCookie ( string $name, string $value = '', integer $expires, string $path = '', string $domain = '', boolean $secure = false, boolean $httpOnly = false ) : Icicle\Http\Message\Response
$name string
$value string
$expires integer
$path string
$domain string
$secure boolean
$httpOnly boolean
Результат Icicle\Http\Message\Response

withStatus() публичный Метод

Returns a new instance with the given status.
public withStatus ( integer $code, string $reason = '' ) : Icicle\Http\Message\Response
$code integer 3-digit status code.
$reason string Description of status code or null to use default reason associated with the status code given.
Результат Icicle\Http\Message\Response

withoutCookie() публичный Метод

public withoutCookie ( string $name ) : Icicle\Http\Message\Response
$name string
Результат Icicle\Http\Message\Response