PHP 클래스 Horde_Http_Response_Base, horde

저자: Chuck Hagenbuch ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$code integer HTTP response code.
$headers array Response headers.
$httpVersion float HTTP protocol version that was used.
$uri string Fetched URI.

보호된 프로퍼티들

프로퍼티 타입 설명
$_headers Horde_Support_CaseInsensitiveArray Case-insensitive list of headers.

공개 메소드들

메소드 설명
getBody ( ) : string Returns the body of the HTTP response.
getHeader ( string $header ) : string Returns the value of a single response header.
getStream ( ) Returns a stream pointing to the response body that can be used with all standard PHP stream functions.

보호된 메소드들

메소드 설명
_parseHeaders ( array $headers ) : array Parses an array of response headers, mindful of line continuations, etc.

메소드 상세

_parseHeaders() 보호된 메소드

Parses an array of response headers, mindful of line continuations, etc.
protected _parseHeaders ( array $headers ) : array
$headers array
리턴 array

getBody() 추상적인 공개 메소드

Returns the body of the HTTP response.
abstract public getBody ( ) : string
리턴 string HTTP response body.

getHeader() 공개 메소드

Returns the value of a single response header.
public getHeader ( string $header ) : string
$header string Header name to get ('Content-Type', 'Content-Length', etc.).
리턴 string HTTP header value.

getStream() 공개 메소드

Returns a stream pointing to the response body that can be used with all standard PHP stream functions.
public getStream ( )

프로퍼티 상세

$_headers 보호되어 있는 프로퍼티

Case-insensitive list of headers.
protected Horde_Support_CaseInsensitiveArray $_headers
리턴 Horde_Support_CaseInsensitiveArray

$code 공개적으로 프로퍼티

HTTP response code.
public int $code
리턴 integer

$headers 공개적으로 프로퍼티

Response headers.
public array $headers
리턴 array

$httpVersion 공개적으로 프로퍼티

HTTP protocol version that was used.
public float $httpVersion
리턴 float

$uri 공개적으로 프로퍼티

Fetched URI.
public string $uri
리턴 string