PHP 클래스 Icicle\Http\Message\BasicResponse

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

공개 메소드들

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

보호된 메소드들

메소드 설명
filterReason ( string $reason = null ) : string
validateStatusCode ( integer $code ) : integer

비공개 메소드들

메소드 설명
setCookiesFromHeaders ( ) Sets cookies based on headers.
setHeadersFromCookies ( ) Sets headers based on cookie values.

메소드 상세

__construct() 공개 메소드

public __construct ( integer $code = 200, array $headers = [], Icicle\Stream\ReadableStream $stream = null, string $reason = null, string $protocol = '1.1' )
$code integer Status code.
$headers array
$stream Icicle\Stream\ReadableStream
$reason string Status code reason.
$protocol string

filterReason() 보호된 메소드

protected filterReason ( string $reason = null ) : string
$reason string
리턴 string

getCookie() 공개 메소드

public getCookie ( string $name )
$name string

getCookies() 공개 메소드

public getCookies ( ) : array
리턴 array

getReasonPhrase() 공개 메소드

public getReasonPhrase ( ) : string
리턴 string

getStatusCode() 공개 메소드

public getStatusCode ( ) : integer
리턴 integer

hasCookie() 공개 메소드

public hasCookie ( string $name ) : boolean
$name string
리턴 boolean

validateStatusCode() 보호된 메소드

protected validateStatusCode ( integer $code ) : integer
$code integer
리턴 integer

withAddedHeader() 공개 메소드

public withAddedHeader ( string $name, $value ) : Icicle\Http\Message\Message
$name string
리턴 Icicle\Http\Message\Message

withCookie() 공개 메소드

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
리턴 Icicle\Http\Message\Response

withHeader() 공개 메소드

public withHeader ( string $name, $value ) : Icicle\Http\Message\Message
$name string
리턴 Icicle\Http\Message\Message

withStatus() 공개 메소드

public withStatus ( integer $code, string $reason = null ) : Icicle\Http\Message\Response
$code integer
$reason string
리턴 Icicle\Http\Message\Response

withoutCookie() 공개 메소드

public withoutCookie ( string $name ) : Icicle\Http\Message\Response
$name string
리턴 Icicle\Http\Message\Response

withoutHeader() 공개 메소드

public withoutHeader ( string $name ) : Icicle\Http\Message\Message
$name string
리턴 Icicle\Http\Message\Message