Edit
↰
Home
↑
http
↑
Header
↑
Parser
↻
Parser::stream
↲
Parser::getState
↲
Parser::parse
#
int
http\Header\Parser::stream
(
resource
$stream
,
int
$flags
,
array
&
$headers
)
Parse a stream.
Params:
#
resource
$stream
#
The header stream to parse from.
int
$flags
#
Any combination of
parser flags
.
array
&
$headers
#
The headers parsed.
Returns:
#
int
,
http\Header\Parser::STATE_*
constant.
Throws:
#
http\Exception\InvalidArgumentException
http\Exception\UnexpectedValueException
Show Comments from Github Discussions