12 $m = new http\Message;
13 $m->setRequestUrl("/foo");
14 $m->setType(http\Message::TYPE_REQUEST);
15 $m->setRequestUrl("");
17 $m = new http\Message;
19 $m->getParentMessage();
21 } catch (http\Exception $e) {
22 var_dump($e->getMessage());
25 $m = new http\Message("HTTP/1.1 200\r\nHTTP/1.1 201");
27 $m->prepend($m->getParentMessage());
29 } catch (http\Exception $e) {
30 var_dump($e->getMessage());
38 Notice: http\Message::setRequestUrl(): HttpMessage is not of type REQUEST in %s on line %d
40 Warning: http\Message::setRequestUrl(): Cannot set HttpMessage::requestUrl to an empty string in %s on line %d
41 string(42) "HttpMessage does not have a parent message"
42 string(62) "Cannot prepend a message located within the same message chain"