Andy Green | 917f43a | 2014-10-12 14:31:47 +0800 | [diff] [blame] | 1 | /* set of parsable strings -- ALL LOWER CASE */ |
| 2 | |
| 3 | static const char *set[] = { |
| 4 | "get ", |
| 5 | "post ", |
| 6 | "options ", |
| 7 | "host:", |
| 8 | "connection:", |
| 9 | "upgrade:", |
| 10 | "origin:", |
| 11 | "sec-websocket-draft:", |
| 12 | "\x0d\x0a", |
| 13 | |
| 14 | "sec-websocket-extensions:", |
| 15 | "sec-websocket-key1:", |
| 16 | "sec-websocket-key2:", |
| 17 | "sec-websocket-protocol:", |
| 18 | |
| 19 | "sec-websocket-accept:", |
| 20 | "sec-websocket-nonce:", |
| 21 | "http/1.1 ", |
| 22 | "http2-settings:", |
| 23 | |
| 24 | "accept:", |
| 25 | "access-control-request-headers:", |
| 26 | "if-modified-since:", |
| 27 | "if-none-match:", |
| 28 | "accept-encoding:", |
| 29 | "accept-language:", |
| 30 | "pragma:", |
| 31 | "cache-control:", |
| 32 | "authorization:", |
| 33 | "cookie:", |
| 34 | "content-length:", |
| 35 | "content-type:", |
| 36 | "date:", |
| 37 | "range:", |
| 38 | "referer:", |
| 39 | "sec-websocket-key:", |
| 40 | "sec-websocket-version:", |
| 41 | "sec-websocket-origin:", |
Andy Green | 40110e8 | 2015-12-14 08:52:03 +0800 | [diff] [blame] | 42 | |
Andy Green | 917f43a | 2014-10-12 14:31:47 +0800 | [diff] [blame] | 43 | ":authority:", |
| 44 | ":method:", |
| 45 | ":path:", |
| 46 | ":scheme:", |
| 47 | ":status:", |
Andy Green | 40110e8 | 2015-12-14 08:52:03 +0800 | [diff] [blame] | 48 | |
Andy Green | 917f43a | 2014-10-12 14:31:47 +0800 | [diff] [blame] | 49 | "accept-charset:", |
| 50 | "accept-ranges:", |
| 51 | "access-control-allow-origin:", |
| 52 | "age:", |
| 53 | "allow:", |
| 54 | "content-disposition:", |
| 55 | "content-encoding:", |
| 56 | "content-language:", |
| 57 | "content-location:", |
| 58 | "content-range:", |
| 59 | "etag:", |
| 60 | "expect:", |
| 61 | "expires:", |
| 62 | "from:", |
| 63 | "if-match:", |
| 64 | "if-range:", |
| 65 | "if-unmodified-since:", |
| 66 | "last-modified:", |
| 67 | "link:", |
| 68 | "location:", |
| 69 | "max-forwards:", |
| 70 | "proxy-authenticate:", |
| 71 | "proxy-authorization:", |
| 72 | "refresh:", |
| 73 | "retry-after:", |
| 74 | "server:", |
| 75 | "set-cookie:", |
| 76 | "strict-transport-security:", |
| 77 | "transfer-encoding:", |
| 78 | "user-agent:", |
| 79 | "vary:", |
| 80 | "via:", |
| 81 | "www-authenticate:", |
=?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= | fdde0f0 | 2014-12-14 12:13:43 +0800 | [diff] [blame] | 82 | "proxy ", |
Andy Green | 40110e8 | 2015-12-14 08:52:03 +0800 | [diff] [blame] | 83 | |
Quinlan Pfiffer | 49f72aa | 2015-01-10 19:01:52 -0800 | [diff] [blame] | 84 | "patch", |
| 85 | "put", |
| 86 | "delete", |
Andy Green | 917f43a | 2014-10-12 14:31:47 +0800 | [diff] [blame] | 87 | |
| 88 | "", /* not matchable */ |
| 89 | |
| 90 | }; |