61f7ef0f657af86d8f132546c2b8ff8d1d98ef67
[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.