PHP 인터페이스 Nette\Http\IResponse

파일 보기 프로젝트 열기: nette/http 0 사용 예제들

공개 메소드들

메소드 설명
addHeader ( $name, $value ) : void Adds HTTP header.
deleteCookie ( $name, $path = NULL, $domain = NULL, $secure = NULL ) : void Deletes a cookie.
getCode ( ) : integer Returns HTTP response code.
getHeader ( $header, $default = NULL ) : mixed Returns value of an HTTP header.
getHeaders ( ) : array Returns a list of headers to sent.
isSent ( ) : boolean Checks if headers have been sent.
redirect ( $url, $code = self::S302_FOUND ) : void Redirects to a new URL.
setCode ( $code ) : void Sets HTTP response code.
setContentType ( $type, $charset = NULL ) : void Sends a Content-type HTTP header.
setCookie ( $name, $value, $expire, $path = NULL, $domain = NULL, $secure = NULL, $httpOnly = NULL ) : void Sends a cookie.
setExpiration ( $seconds ) : void Sets the number of seconds before a page cached on a browser expires.
setHeader ( $name, $value ) : void Sends a HTTP header and replaces a previous one.

메소드 상세

addHeader() 공개 메소드

Adds HTTP header.
public addHeader ( $name, $value ) : void
리턴 void

deleteCookie() 공개 메소드

Deletes a cookie.
public deleteCookie ( $name, $path = NULL, $domain = NULL, $secure = NULL ) : void
리턴 void

getCode() 공개 메소드

Returns HTTP response code.
public getCode ( ) : integer
리턴 integer

getHeader() 공개 메소드

Returns value of an HTTP header.
public getHeader ( $header, $default = NULL ) : mixed
리턴 mixed

getHeaders() 공개 메소드

Returns a list of headers to sent.
public getHeaders ( ) : array
리턴 array (name => value)

isSent() 공개 메소드

Checks if headers have been sent.
public isSent ( ) : boolean
리턴 boolean

redirect() 공개 메소드

Redirects to a new URL.
public redirect ( $url, $code = self::S302_FOUND ) : void
리턴 void

setCode() 공개 메소드

Sets HTTP response code.
public setCode ( $code ) : void
리턴 void

setContentType() 공개 메소드

Sends a Content-type HTTP header.
public setContentType ( $type, $charset = NULL ) : void
리턴 void

setCookie() 공개 메소드

Sends a cookie.
public setCookie ( $name, $value, $expire, $path = NULL, $domain = NULL, $secure = NULL, $httpOnly = NULL ) : void
리턴 void

setExpiration() 공개 메소드

Sets the number of seconds before a page cached on a browser expires.
public setExpiration ( $seconds ) : void
리턴 void

setHeader() 공개 메소드

Sends a HTTP header and replaces a previous one.
public setHeader ( $name, $value ) : void
리턴 void