message parser
[mdref/mdref-http] / http / Message / Parser / stream.md
1 # int http\Message\Parser::stream(resource $stream, int $flags, http\Message &$message)
2
3 Parse a stream.
4
5 ## Params:
6
7 * stream $resource
8 The message stream to parse from.
9 * int $flags
10 Any combination of [parser flags](http/Message/Parser#Parser.flags:).
11 * http\Message &$message
12 The current state of the message parsed.
13
14 ## Returns:
15
16 * int, http\Message\Parser::STATE_* constant.
17
18 ## Throws:
19
20 * http\Exception\InvalidArgumentException
21 * http\Exception\UnexpectedValueException