source: trip-planner-front/node_modules/hpack.js/test/fixtures.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 6.4 KB
Line 
1exports.specExamples = [
2 {
3 id: 'C.3.1',
4 huffman: false,
5 input: '8286 8441 0f77 7777 2e65 7861 6d70 6c65' +
6 '2e63 6f6d',
7 output: [
8 [ ':method', 'GET' ],
9 [ ':scheme', 'http' ],
10 [ ':path', '/' ],
11 [ ':authority', 'www.example.com' ]
12 ],
13 table: [
14 [ ':authority', 'www.example.com', 57 ]
15 ]
16 },
17 {
18 id: 'C.3.2',
19 continuation: true,
20 huffman: false,
21 input: '8286 84be 5808 6e6f 2d63 6163 6865',
22 output: [
23 [ ':method', 'GET' ],
24 [ ':scheme', 'http' ],
25 [ ':path', '/' ],
26 [ ':authority', 'www.example.com' ],
27 [ 'cache-control', 'no-cache' ]
28 ],
29 table: [
30 [ 'cache-control', 'no-cache', 53 ],
31 [ ':authority', 'www.example.com', 57 ]
32 ]
33 },
34 {
35 id: 'C.3.3',
36 continuation: true,
37 huffman: false,
38 input: '8287 85bf 400a 6375 7374 6f6d 2d6b 6579' +
39 '0c63 7573 746f 6d2d 7661 6c75 65',
40 output: [
41 [ ':method', 'GET' ],
42 [ ':scheme', 'https' ],
43 [ ':path', '/index.html' ],
44 [ ':authority', 'www.example.com' ],
45 [ 'custom-key', 'custom-value' ]
46 ],
47 table: [
48 [ 'custom-key', 'custom-value', 54 ],
49 [ 'cache-control', 'no-cache', 53 ],
50 [ ':authority', 'www.example.com', 57 ]
51 ]
52 },
53
54 {
55 id: 'C.4.1',
56 input: '8286 8441 8cf1 e3c2 e5f2 3a6b a0ab 90f4' +
57 'ff',
58 output: [
59 [ ':method', 'GET' ],
60 [ ':scheme', 'http' ],
61 [ ':path', '/' ],
62 [ ':authority', 'www.example.com' ]
63 ],
64 table: [
65 [ ':authority', 'www.example.com', 57 ]
66 ]
67 },
68 {
69 id: 'C.4.2',
70 continuation: true,
71 input: '8286 84be 5886 a8eb 1064 9cbf',
72 output: [
73 [ ':method', 'GET' ],
74 [ ':scheme', 'http' ],
75 [ ':path', '/' ],
76 [ ':authority', 'www.example.com' ],
77 [ 'cache-control', 'no-cache' ]
78 ],
79 table: [
80 [ 'cache-control', 'no-cache', 53 ],
81 [ ':authority', 'www.example.com', 57 ]
82 ]
83 },
84 {
85 id: 'C.4.3',
86 continuation: true,
87 input: '8287 85bf 4088 25a8 49e9 5ba9 7d7f 8925' +
88 'a849 e95b b8e8 b4bf',
89 output: [
90 [ ':method', 'GET' ],
91 [ ':scheme', 'https' ],
92 [ ':path', '/index.html' ],
93 [ ':authority', 'www.example.com' ],
94 [ 'custom-key', 'custom-value' ]
95 ],
96 table: [
97 [ 'custom-key', 'custom-value', 54 ],
98 [ 'cache-control', 'no-cache', 53 ],
99 [ ':authority', 'www.example.com', 57 ]
100 ]
101 },
102
103 {
104 id: 'C.5.1',
105 huffman: false,
106 input: '4803 3330 3258 0770 7269 7661 7465 611d' +
107 '4d6f 6e2c 2032 3120 4f63 7420 3230 3133' +
108 '2032 303a 3133 3a32 3120 474d 546e 1768' +
109 '7474 7073 3a2f 2f77 7777 2e65 7861 6d70' +
110 '6c65 2e63 6f6d',
111 output: [
112 [ ':status', '302' ],
113 [ 'cache-control', 'private' ],
114 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
115 [ 'location', 'https://www.example.com' ]
116 ],
117 table: [
118 [ 'location', 'https://www.example.com', 63 ],
119 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
120 [ 'cache-control', 'private', 52 ],
121 [ ':status', '302', 42 ]
122 ]
123 },
124 {
125 id: 'C.5.2',
126 huffman: false,
127 continuation: true,
128 input: '4803 3330 37c1 c0bf',
129 output: [
130 [ ':status', '307' ],
131 [ 'cache-control', 'private' ],
132 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
133 [ 'location', 'https://www.example.com' ]
134 ],
135 table: [
136 [ ':status', '307', 42 ],
137 [ 'location', 'https://www.example.com', 63 ],
138 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
139 [ 'cache-control', 'private', 52 ]
140 ]
141 },
142 {
143 id: 'C.5.3',
144 huffman: false,
145 continuation: true,
146 input: '88c1 611d 4d6f 6e2c 2032 3120 4f63 7420' +
147 '3230 3133 2032 303a 3133 3a32 3220 474d' +
148 '54c0 5a04 677a 6970 7738 666f 6f3d 4153' +
149 '444a 4b48 514b 425a 584f 5157 454f 5049' +
150 '5541 5851 5745 4f49 553b 206d 6178 2d61' +
151 '6765 3d33 3630 303b 2076 6572 7369 6f6e' +
152 '3d31',
153 output: [
154 [ ':status', '200' ],
155 [ 'cache-control', 'private' ],
156 [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT' ],
157 [ 'location', 'https://www.example.com' ],
158 [ 'content-encoding', 'gzip' ],
159 [ 'set-cookie',
160 'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1' ]
161 ],
162 table: [
163 [ 'set-cookie',
164 'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1',
165 98 ],
166 [ 'content-encoding', 'gzip', 52 ],
167 [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT', 65 ]
168 ]
169 },
170
171 {
172 id: 'C.6.1',
173 input: '4882 6402 5885 aec3 771a 4b61 96d0 7abe' +
174 '9410 54d4 44a8 2005 9504 0b81 66e0 82a6' +
175 '2d1b ff6e 919d 29ad 1718 63c7 8f0b 97c8' +
176 'e9ae 82ae 43d3',
177 output: [
178 [ ':status', '302' ],
179 [ 'cache-control', 'private' ],
180 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
181 [ 'location', 'https://www.example.com' ]
182 ],
183 table: [
184 [ 'location', 'https://www.example.com', 63 ],
185 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
186 [ 'cache-control', 'private', 52 ],
187 [ ':status', '302', 42 ]
188 ]
189 },
190 {
191 id: 'C.6.2',
192 continuation: true,
193 input: '4883 640e ffc1 c0bf',
194 output: [
195 [ ':status', '307' ],
196 [ 'cache-control', 'private' ],
197 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT' ],
198 [ 'location', 'https://www.example.com' ]
199 ],
200 table: [
201 [ ':status', '307', 42 ],
202 [ 'location', 'https://www.example.com', 63 ],
203 [ 'date', 'Mon, 21 Oct 2013 20:13:21 GMT', 65 ],
204 [ 'cache-control', 'private', 52 ]
205 ]
206 },
207 {
208 id: 'C.6.3',
209 continuation: true,
210 input: '88c1 6196 d07a be94 1054 d444 a820 0595' +
211 '040b 8166 e084 a62d 1bff c05a 839b d9ab' +
212 '77ad 94e7 821d d7f2 e6c7 b335 dfdf cd5b' +
213 '3960 d5af 2708 7f36 72c1 ab27 0fb5 291f' +
214 '9587 3160 65c0 03ed 4ee5 b106 3d50 07',
215 output: [
216 [ ':status', '200' ],
217 [ 'cache-control', 'private' ],
218 [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT' ],
219 [ 'location', 'https://www.example.com' ],
220 [ 'content-encoding', 'gzip' ],
221 [ 'set-cookie',
222 'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1' ]
223 ],
224 table: [
225 [ 'set-cookie',
226 'foo=ASDJKHQKBZXOQWEOPIUAXQWEOIU; max-age=3600; version=1',
227 98 ],
228 [ 'content-encoding', 'gzip', 52 ],
229 [ 'date', 'Mon, 21 Oct 2013 20:13:22 GMT', 65 ]
230 ]
231 }
232];
Note: See TracBrowser for help on using the repository browser.