PHP 클래스 Phly\Http\AbstractSerializer

파일 보기 프로젝트 열기: phly/http

보호된 메소드들

메소드 설명
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.

메소드 상세

filterHeader() 보호된 정적인 메소드

Filter a header name to wordcase
protected static filterHeader ( string $header ) : string
$header string
리턴 string

getLine() 보호된 정적인 메소드

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
리턴 string

serializeHeaders() 보호된 정적인 메소드

Serialize headers to string values.
protected static serializeHeaders ( array $headers ) : string
$headers array
리턴 string

splitStream() 보호된 정적인 메소드

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
리턴 array