1 # void http\Message::rewind()
12 $message = new http\Message("GET / HTTP/1.1\n".
17 foreach ($message as $key => $msg) {
18 printf("Key %d is a %8s: %s\n",
19 $key, ["message", "request", "response"][$msg->getType()],
27 Key 2 is a response: HTTP/1.0 426
28 Key 8 is a request: GET / HTTP/1.0
29 Key 6 is a response: HTTP/1.1 200
30 Key 4 is a request: GET / HTTP/1.1