|
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 |
| 1 | +GET / HTTP/1.0 |
10 | 2 | GET / HTTP/1.1
|
| 3 | +GET /path/to/file HTTP/1.1 |
| 4 | +GET /path/to/file?a=1&b=2 HTTP/1.1 |
| 5 | +GET http://example.com HTTP/1.1 |
| 6 | +GET https://example.com HTTP/1.1 |
| 7 | +GET https://example.com/ HTTP/1.1 |
| 8 | +GET https://example.com/path/to/file?a=1&b=2 HTTP/1.1 |
| 9 | +GET https://example.com:443/path/to/file?a=1&b=2 HTTP/1.1 |
| 10 | +GET https://user:pass@example.com:443/path/to/file?a=1&b=2 HTTP/1.1 |
| 11 | +HEAD / HTTP/1.1 |
| 12 | +POST / HTTP/1.1 |
| 13 | +PUT / HTTP/1.1 |
| 14 | +DELETE / HTTP/1.1 |
| 15 | +CONNECT / HTTP/1.1 |
| 16 | +OPTIONS / HTTP/1.1 |
| 17 | +TRACE / HTTP/1.1 |
| 18 | +PATCH / HTTP/1.1 |
| 19 | +PRI / HTTP/1.1 |
| 20 | +SEARCH / HTTP/1.1 |
11 | 21 |
|
12 | 22 | ----------------------------------------------------
|
13 | 23 |
|
14 | 24 | [
|
15 | 25 | ["request-line", [
|
16 |
| - ["property", "POST"], |
17 |
| - " http://example.com HTTP/1.0" |
| 26 | + ["method", "GET"], |
| 27 | + ["request-target", "/"], |
| 28 | + ["http-version", "HTTP/1.0"] |
18 | 29 | ]],
|
19 | 30 | ["request-line", [
|
20 |
| - ["property", "GET"], |
21 |
| - " http://localhost", |
22 |
| - ["attr-name", ":9999"], |
23 |
| - "/foo.html HTTP/1.1" |
| 31 | + ["method", "GET"], |
| 32 | + ["request-target", "/"], |
| 33 | + ["http-version", "HTTP/1.1"] |
24 | 34 | ]],
|
25 | 35 | ["request-line", [
|
26 |
| - ["property", "PUT"], |
27 |
| - " http://www.example.com HTTP/2.0" |
| 36 | + ["method", "GET"], |
| 37 | + ["request-target", "/path/to/file"], |
| 38 | + ["http-version", "HTTP/1.1"] |
28 | 39 | ]],
|
29 | 40 | ["request-line", [
|
30 |
| - ["property", "DELETE"], |
31 |
| - " https://example.com HTTP/1.1" |
| 41 | + ["method", "GET"], |
| 42 | + ["request-target", "/path/to/file?a=1&b=2"], |
| 43 | + ["http-version", "HTTP/1.1"] |
32 | 44 | ]],
|
33 | 45 | ["request-line", [
|
34 |
| - ["property", "OPTIONS"], |
35 |
| - " https://www.example.com HTTP/1.1" |
| 46 | + ["method", "GET"], |
| 47 | + ["request-target", "http://example.com"], |
| 48 | + ["http-version", "HTTP/1.1"] |
36 | 49 | ]],
|
37 | 50 | ["request-line", [
|
38 |
| - ["property", "PATCH"], |
39 |
| - " http://example.com HTTP/1.0" |
| 51 | + ["method", "GET"], |
| 52 | + ["request-target", "https://example.com"], |
| 53 | + ["http-version", "HTTP/1.1"] |
40 | 54 | ]],
|
41 | 55 | ["request-line", [
|
42 |
| - ["property", "TRACE"], |
43 |
| - " http://example.com HTTP/1.0" |
| 56 | + ["method", "GET"], |
| 57 | + ["request-target", "https://example.com/"], |
| 58 | + ["http-version", "HTTP/1.1"] |
44 | 59 | ]],
|
45 | 60 | ["request-line", [
|
46 |
| - ["property", "CONNECT"], |
47 |
| - " http://example.com HTTP/1.0" |
| 61 | + ["method", "GET"], |
| 62 | + ["request-target", "https://example.com/path/to/file?a=1&b=2"], |
| 63 | + ["http-version", "HTTP/1.1"] |
48 | 64 | ]],
|
49 | 65 | ["request-line", [
|
50 |
| - ["property", "GET"], |
51 |
| - " /path/to/foo.html HTTP/1.1" |
| 66 | + ["method", "GET"], |
| 67 | + ["request-target", "https://example.com:443/path/to/file?a=1&b=2"], |
| 68 | + ["http-version", "HTTP/1.1"] |
52 | 69 | ]],
|
53 | 70 | ["request-line", [
|
54 |
| - ["property", "GET"], |
55 |
| - " / HTTP/1.1" |
| 71 | + ["method", "GET"], |
| 72 | + ["request-target", "https://user:pass@example.com:443/path/to/file?a=1&b=2"], |
| 73 | + ["http-version", "HTTP/1.1"] |
| 74 | + ]], |
| 75 | + ["request-line", [ |
| 76 | + ["method", "HEAD"], |
| 77 | + ["request-target", "/"], |
| 78 | + ["http-version", "HTTP/1.1"] |
| 79 | + ]], |
| 80 | + ["request-line", [ |
| 81 | + ["method", "POST"], |
| 82 | + ["request-target", "/"], |
| 83 | + ["http-version", "HTTP/1.1"] |
| 84 | + ]], |
| 85 | + ["request-line", [ |
| 86 | + ["method", "PUT"], |
| 87 | + ["request-target", "/"], |
| 88 | + ["http-version", "HTTP/1.1"] |
| 89 | + ]], |
| 90 | + ["request-line", [ |
| 91 | + ["method", "DELETE"], |
| 92 | + ["request-target", "/"], |
| 93 | + ["http-version", "HTTP/1.1"] |
| 94 | + ]], |
| 95 | + ["request-line", [ |
| 96 | + ["method", "CONNECT"], |
| 97 | + ["request-target", "/"], |
| 98 | + ["http-version", "HTTP/1.1"] |
| 99 | + ]], |
| 100 | + ["request-line", [ |
| 101 | + ["method", "OPTIONS"], |
| 102 | + ["request-target", "/"], |
| 103 | + ["http-version", "HTTP/1.1"] |
| 104 | + ]], |
| 105 | + ["request-line", [ |
| 106 | + ["method", "TRACE"], |
| 107 | + ["request-target", "/"], |
| 108 | + ["http-version", "HTTP/1.1"] |
| 109 | + ]], |
| 110 | + ["request-line", [ |
| 111 | + ["method", "PATCH"], |
| 112 | + ["request-target", "/"], |
| 113 | + ["http-version", "HTTP/1.1"] |
| 114 | + ]], |
| 115 | + ["request-line", [ |
| 116 | + ["method", "PRI"], |
| 117 | + ["request-target", "/"], |
| 118 | + ["http-version", "HTTP/1.1"] |
| 119 | + ]], |
| 120 | + ["request-line", [ |
| 121 | + ["method", "SEARCH"], |
| 122 | + ["request-target", "/"], |
| 123 | + ["http-version", "HTTP/1.1"] |
56 | 124 | ]]
|
57 | 125 | ]
|
58 | 126 |
|
|