mdref.json config
[mdref/mdref-http] / http / Message / __construct.md
1 # void http\Message::__construct([mixed $message = NULL[, bool $greedy = true])
2
3 Create a new HTTP message.
4
5 ## Params:
6
7 * Optional mixed $message = NULL
8 Either a resource or a string, representing the HTTP message.
9 * Optional bool $greedy = true
10 Whether to read from a $message resource until EOF.
11
12 ## Throws:
13
14 * http\Exception\InvalidArgumentException
15 * http\Exception\BadMessageException