PHP 클래스 Teapot\HttpException

저자: Barney Hanlon ([email protected])
상속: extends teapot\Exception, implements teapot\StatusCode
파일 보기 프로젝트 열기: shrikeh/teapot

공개 메소드들

메소드 설명
__toString ( ) : string Simple magic so you can use the Exception directly as a string, for example in header();.
render ( boolean $prependHttp = true ) : string Render the code and message (in whole or in part) as a valid response status header.

메소드 상세

__toString() 공개 메소드

Simple magic so you can use the Exception directly as a string, for example in header();.
public __toString ( ) : string
리턴 string A fully valid status header

render() 공개 메소드

Render the code and message (in whole or in part) as a valid response status header.
public render ( boolean $prependHttp = true ) : string
$prependHttp boolean Whether to prepend the HTTP/1.1 prefix
리턴 string