| 1 |
POST http://example.com HTTP/1.0 |
| 2 |
GET http://localhost:9999/foo.html HTTP/1.1 |
| 3 |
PUT http://www.example.com HTTP/2.0 |
| 4 |
DELETE https://example.com HTTP/1.1 |
| 5 |
OPTIONS https://www.example.com HTTP/1.1 |
| 6 |
PATCH http://example.com HTTP/1.0 |
| 7 |
TRACE http://example.com HTTP/1.0 |
| 8 |
CONNECT http://example.com HTTP/1.0 |
| 9 |
GET /path/to/foo.html HTTP/1.1 |
| 10 |
GET / HTTP/1.1 |
| 11 |
|
| 12 |
---------------------------------------------------- |
| 13 |
|
| 14 |
[ |
| 15 |
["request-line", [ |
| 16 |
["method", "POST"], |
| 17 |
["request-target", [ |
| 18 |
["scheme", [ |
| 19 |
"http", |
| 20 |
["scheme-delimiter", ":"] |
| 21 |
]], |
| 22 |
["authority", [ |
| 23 |
["authority-delimiter", "//"], |
| 24 |
["host", ["example.com"]] |
| 25 |
]] |
| 26 |
]], |
| 27 |
["http-version", "HTTP/1.0"] |
| 28 |
]], |
| 29 |
["request-line", [ |
| 30 |
["method", "GET"], |
| 31 |
["request-target", [ |
| 32 |
["scheme", [ |
| 33 |
"http", |
| 34 |
["scheme-delimiter", ":"] |
| 35 |
]], |
| 36 |
["authority", [ |
| 37 |
["authority-delimiter", "//"], |
| 38 |
["host", ["localhost"]], |
| 39 |
["port-segment", [ |
| 40 |
["port-delimiter", ":"], |
| 41 |
["port", "9999"] |
| 42 |
]] |
| 43 |
]], |
| 44 |
["path", [ |
| 45 |
["path-separator", "/"], |
| 46 |
"foo.html" |
| 47 |
]] |
| 48 |
]], |
| 49 |
["http-version", "HTTP/1.1"] |
| 50 |
]], |
| 51 |
["request-line", [ |
| 52 |
["method", "PUT"], |
| 53 |
["request-target", [ |
| 54 |
["scheme", [ |
| 55 |
"http", |
| 56 |
["scheme-delimiter", ":"] |
| 57 |
]], |
| 58 |
["authority", [ |
| 59 |
["authority-delimiter", "//"], |
| 60 |
["host", ["www.example.com"]] |
| 61 |
]] |
| 62 |
]], |
| 63 |
["http-version", "HTTP/2.0"] |
| 64 |
]], |
| 65 |
["request-line", [ |
| 66 |
["method", "DELETE"], |
| 67 |
["request-target", [ |
| 68 |
["scheme", [ |
| 69 |
"https", |
| 70 |
["scheme-delimiter", ":"] |
| 71 |
]], |
| 72 |
["authority", [ |
| 73 |
["authority-delimiter", "//"], |
| 74 |
["host", ["example.com"]] |
| 75 |
]] |
| 76 |
]], |
| 77 |
["http-version", "HTTP/1.1"] |
| 78 |
]], |
| 79 |
["request-line", [ |
| 80 |
["method", "OPTIONS"], |
| 81 |
["request-target", [ |
| 82 |
["scheme", [ |
| 83 |
"https", |
| 84 |
["scheme-delimiter", ":"] |
| 85 |
]], |
| 86 |
["authority", [ |
| 87 |
["authority-delimiter", "//"], |
| 88 |
["host", ["www.example.com"]] |
| 89 |
]] |
| 90 |
]], |
| 91 |
["http-version", "HTTP/1.1"] |
| 92 |
]], |
| 93 |
["request-line", [ |
| 94 |
["method", "PATCH"], |
| 95 |
["request-target", [ |
| 96 |
["scheme", [ |
| 97 |
"http", |
| 98 |
["scheme-delimiter", ":"] |
| 99 |
]], |
| 100 |
["authority", [ |
| 101 |
["authority-delimiter", "//"], |
| 102 |
["host", ["example.com"]] |
| 103 |
]] |
| 104 |
]], |
| 105 |
["http-version", "HTTP/1.0"] |
| 106 |
]], |
| 107 |
["request-line", [ |
| 108 |
["method", "TRACE"], |
| 109 |
["request-target", [ |
| 110 |
["scheme", [ |
| 111 |
"http", |
| 112 |
["scheme-delimiter", ":"] |
| 113 |
]], |
| 114 |
["authority", [ |
| 115 |
["authority-delimiter", "//"], |
| 116 |
["host", ["example.com"]] |
| 117 |
]] |
| 118 |
]], |
| 119 |
["http-version", "HTTP/1.0"] |
| 120 |
]], |
| 121 |
["request-line", [ |
| 122 |
["method", "CONNECT"], |
| 123 |
["request-target", [ |
| 124 |
["scheme", [ |
| 125 |
"http", |
| 126 |
["scheme-delimiter", ":"] |
| 127 |
]], |
| 128 |
["authority", [ |
| 129 |
["authority-delimiter", "//"], |
| 130 |
["host", ["example.com"]] |
| 131 |
]] |
| 132 |
]], |
| 133 |
["http-version", "HTTP/1.0"] |
| 134 |
]], |
| 135 |
["request-line", [ |
| 136 |
["method", "GET"], |
| 137 |
["request-target", [ |
| 138 |
["path", [ |
| 139 |
["path-separator", "/"], |
| 140 |
"path", |
| 141 |
["path-separator", "/"], |
| 142 |
"to", |
| 143 |
["path-separator", "/"], |
| 144 |
"foo.html" |
| 145 |
]] |
| 146 |
]], |
| 147 |
["http-version", "HTTP/1.1"] |
| 148 |
]], |
| 149 |
["request-line", [ |
| 150 |
["method", "GET"], |
| 151 |
["request-target", [ |
| 152 |
["path", [ |
| 153 |
["path-separator", "/"] |
| 154 |
]] |
| 155 |
]], |
| 156 |
["http-version", "HTTP/1.1"] |
| 157 |
]] |
| 158 |
] |
| 159 |
|
| 160 |
---------------------------------------------------- |
| 161 |
|
| 162 |
Checks for request lines. |