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