fixtures.js 6.4 KB

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