PHP Interface Icicle\Http\Message\Response

Inheritance: extends Icicle\Http\Message\Message
Afficher le fichier Open project: icicleio/http Interface Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

getCookie() public méthode

public getCookie ( string $name ) : Icicle\Http\Message\Cookie\MetaCookie | null
$name string
Résultat Icicle\Http\Message\Cookie\MetaCookie | null

getCookies() public méthode

public getCookies ( ) : array
Résultat array

getReasonPhrase() public méthode

Returns the reason phrase describing the status code.
public getReasonPhrase ( ) : string
Résultat string

getStatusCode() public méthode

Returns the response status code.
public getStatusCode ( ) : integer
Résultat integer

hasCookie() public méthode

public hasCookie ( string $name ) : boolean
$name string
Résultat boolean

withCookie() public méthode

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
Résultat Icicle\Http\Message\Response

withStatus() public méthode

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.
Résultat Icicle\Http\Message\Response

withoutCookie() public méthode

public withoutCookie ( string $name ) : Icicle\Http\Message\Response
$name string
Résultat Icicle\Http\Message\Response