PHP Class Phly\Http\AbstractSerializer

Afficher le fichier Open project: phly/http

Méthodes protégées

Méthode Description
filterHeader ( string $header ) : string Filter a header name to wordcase
getLine ( Psr\Http\Message\StreamInterface $stream ) : string Retrieve a single line from the stream.
serializeHeaders ( array $headers ) : string Serialize headers to string values.
splitStream ( Psr\Http\Message\StreamInterface $stream ) : array Split the stream into headers and body content.

Method Details

filterHeader() protected static méthode

Filter a header name to wordcase
protected static filterHeader ( string $header ) : string
$header string
Résultat string

getLine() protected static méthode

Retrieves a line from the stream; a line is defined as a sequence of characters ending in a CRLF sequence.
protected static getLine ( Psr\Http\Message\StreamInterface $stream ) : string
$stream Psr\Http\Message\StreamInterface
Résultat string

serializeHeaders() protected static méthode

Serialize headers to string values.
protected static serializeHeaders ( array $headers ) : string
$headers array
Résultat string

splitStream() protected static méthode

Returns an array containing two elements - The first is an array of headers - The second is a StreamInterface containing the body content
protected static splitStream ( Psr\Http\Message\StreamInterface $stream ) : array
$stream Psr\Http\Message\StreamInterface
Résultat array