|
| 1 | +/* |
| 2 | + * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"). |
| 5 | + * You may not use this file except in compliance with the License. |
| 6 | + * A copy of the License is located at |
| 7 | + * |
| 8 | + * http://aws.amazon.com/apache2.0 |
| 9 | + * |
| 10 | + * or in the "license" file accompanying this file. This file is distributed |
| 11 | + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 12 | + * express or implied. See the License for the specific language governing |
| 13 | + * permissions and limitations under the License. |
| 14 | + */ |
| 15 | + |
| 16 | +#ifndef HEADER |
| 17 | +#error "Macro HEADER(index, name) must be defined before including this header file!" |
| 18 | +#endif |
| 19 | + |
| 20 | +#ifndef HEADER_WITH_VALUE |
| 21 | +#error "Macro HEADER_WITH_VALUE(index, name, value) must be defined before including this header file!" |
| 22 | +#endif |
| 23 | + |
| 24 | +HEADER(1, ":authority") |
| 25 | +HEADER_WITH_VALUE(2, ":method", "GET") |
| 26 | +HEADER_WITH_VALUE(3, ":method", "POST") |
| 27 | +HEADER_WITH_VALUE(4, ":path", "/") |
| 28 | +HEADER_WITH_VALUE(5, ":path", "/index.html") |
| 29 | +HEADER_WITH_VALUE(6, ":scheme", "http") |
| 30 | +HEADER_WITH_VALUE(7, ":scheme", "https") |
| 31 | +HEADER_WITH_VALUE(8, ":status", "200") |
| 32 | +HEADER_WITH_VALUE(9, ":status", "204") |
| 33 | +HEADER_WITH_VALUE(10, ":status", "206") |
| 34 | +HEADER_WITH_VALUE(11, ":status", "304") |
| 35 | +HEADER_WITH_VALUE(12, ":status", "400") |
| 36 | +HEADER_WITH_VALUE(13, ":status", "404") |
| 37 | +HEADER_WITH_VALUE(14, ":status", "500") |
| 38 | +HEADER(15, "accept-charset") |
| 39 | +HEADER_WITH_VALUE(16, "accept-encoding", "gzip,deflate") |
| 40 | +HEADER(17, "accept-language") |
| 41 | +HEADER(18, "accept-ranges") |
| 42 | +HEADER(19, "accept") |
| 43 | +HEADER(20, "access-control-allow-origin") |
| 44 | +HEADER(21, "age") |
| 45 | +HEADER(22, "allow") |
| 46 | +HEADER(23, "authorization") |
| 47 | +HEADER(24, "cache-control") |
| 48 | +HEADER(25, "content-disposition") |
| 49 | +HEADER(26, "content-encoding") |
| 50 | +HEADER(27, "content-language") |
| 51 | +HEADER(28, "content-length") |
| 52 | +HEADER(29, "content-location") |
| 53 | +HEADER(30, "content-range") |
| 54 | +HEADER(31, "content-type") |
| 55 | +HEADER(32, "cookie") |
| 56 | +HEADER(33, "date") |
| 57 | +HEADER(34, "etag") |
| 58 | +HEADER(35, "expect") |
| 59 | +HEADER(36, "expires") |
| 60 | +HEADER(37, "from") |
| 61 | +HEADER(38, "host") |
| 62 | +HEADER(39, "if-match") |
| 63 | +HEADER(40, "if-modified-since") |
| 64 | +HEADER(41, "if-none-match") |
| 65 | +HEADER(42, "if-range") |
| 66 | +HEADER(43, "if-unmodified-since") |
| 67 | +HEADER(44, "last-modified") |
| 68 | +HEADER(45, "link") |
| 69 | +HEADER(46, "location") |
| 70 | +HEADER(47, "max-forwards") |
| 71 | +HEADER(48, "proxy-authenticate") |
| 72 | +HEADER(49, "proxy-authorization") |
| 73 | +HEADER(50, "range") |
| 74 | +HEADER(51, "referer") |
| 75 | +HEADER(52, "refresh") |
| 76 | +HEADER(53, "retry-after") |
| 77 | +HEADER(54, "server") |
| 78 | +HEADER(55, "set-cookie") |
| 79 | +HEADER(56, "strict-transport-security") |
| 80 | +HEADER(57, "transfer-encoding") |
| 81 | +HEADER(58, "user-agent") |
| 82 | +HEADER(59, "vary") |
| 83 | +HEADER(60, "via") |
| 84 | +HEADER(61, "www-authenticate") |
0 commit comments