2 HttpMessage implements Serializable, Countable
14 "Location: /anywhere\r\n".
16 "Location: /somewhere\r\n".
18 "Transfer-Encoding: chunked\r\n".
25 var_dump($m->count());
26 var_dump($m->serialize());
27 $m->unserialize("HTTP/1.1 200 Ok\r\nServer: Funky/1.0");
29 var_dump($m->count());
36 string(148) "HTTP/1.1 301
41 X-Original-Transfer-Encoding: chunked
46 object(HttpMessage)#%d (%d) {
47 ["type%sprotected%s]=>
49 ["body%sprotected%s]=>
51 ["requestMethod%sprotected%s]=>
53 ["requestUrl%sprotected%s]=>
55 ["responseStatus%sprotected%s]=>
57 ["responseCode%sprotected%s]=>
59 ["httpVersion%sprotected%s]=>
61 ["headers%sprotected%s]=>
66 ["parentMessage%sprotected%s]=>