PHP 인터페이스 Icicle\Http\Message\Response

상속: extends Icicle\Http\Message\Message
파일 보기 프로젝트 열기: icicleio/http 0 사용 예제들

공개 메소드들

메소드 설명
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