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