class HeaderFieldParser (View source)

Parse HTTP message header fields

Methods

__construct(callable $headerNameProcessor = null, callable $headerValueProcessor = null)

No description

mixed[]
parse(StreamInterface $stream)

No description

Details

__construct(callable $headerNameProcessor = null, callable $headerValueProcessor = null)

Parameters

callable $headerNameProcessor
callable $headerValueProcessor

Exceptions

InvalidArgumentException

mixed[] parse(StreamInterface $stream)

Parameters

StreamInterface $stream Request header stream

Return Value

mixed[]

Exceptions

ErrorException