PHP Класс Horde_Http_Response_Base, horde

Автор: Chuck Hagenbuch ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$code integer HTTP response code.
$headers array Response headers.
$httpVersion float HTTP protocol version that was used.
$uri string Fetched URI.

Защищенные свойства (Protected)

Свойство Тип Описание
$_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