4 <?php include "skipif.inc"; ?>
9 var_dump(new http\Message("GET HTTP/1.1"));
10 } catch (Exception $e) {
14 var_dump(new http\Message("GET HTTP/1.123"));
15 } catch (Exception $e) {
19 var_dump(new http\Message("GETHTTP/1.1"));
20 } catch (Exception $e) {
23 var_dump(new http\Message("GET / HTTP/1.1"));
27 exception 'http\Exception' with message 'could not parse message: GET HTTP/1.1' in %s
29 #0 %s: http\Message->__construct('GET HTTP/1.1')
31 exception 'http\Exception' with message 'could not parse message: GET HTTP/1.123' in %s
33 #0 %s: http\Message->__construct('GET HTTP/1.123')
35 exception 'http\Exception' with message 'could not parse message: GETHTTP/1.1' in %s
37 #0 %s: http\Message->__construct('GETHTTP/1.1')
39 object(http\Message)#%d (10) {
40 ["errorHandling":protected]=>
45 object(http\Message\Body)#%d (1) {
46 ["errorHandling":protected]=>
49 ["requestMethod":protected]=>
51 ["requestUrl":protected]=>
53 ["responseStatus":protected]=>
55 ["responseCode":protected]=>
57 ["httpVersion":protected]=>
59 ["headers":protected]=>
62 ["parentMessage":protected]=>