2014-10-12 14:31:47 +08:00
|
|
|
/* set of parsable strings -- ALL LOWER CASE */
|
|
|
|
|
2016-07-23 14:18:25 +08:00
|
|
|
#if !defined(STORE_IN_ROM)
|
|
|
|
#define STORE_IN_ROM
|
|
|
|
#endif
|
|
|
|
|
|
|
|
STORE_IN_ROM static const char * const set[] = {
|
2014-10-12 14:31:47 +08:00
|
|
|
"get ",
|
|
|
|
"post ",
|
|
|
|
"options ",
|
|
|
|
"host:",
|
|
|
|
"connection:",
|
|
|
|
"upgrade:",
|
|
|
|
"origin:",
|
|
|
|
"sec-websocket-draft:",
|
|
|
|
"\x0d\x0a",
|
|
|
|
|
|
|
|
"sec-websocket-extensions:",
|
|
|
|
"sec-websocket-key1:",
|
|
|
|
"sec-websocket-key2:",
|
|
|
|
"sec-websocket-protocol:",
|
|
|
|
|
|
|
|
"sec-websocket-accept:",
|
|
|
|
"sec-websocket-nonce:",
|
|
|
|
"http/1.1 ",
|
|
|
|
"http2-settings:",
|
|
|
|
|
|
|
|
"accept:",
|
|
|
|
"access-control-request-headers:",
|
|
|
|
"if-modified-since:",
|
|
|
|
"if-none-match:",
|
|
|
|
"accept-encoding:",
|
|
|
|
"accept-language:",
|
|
|
|
"pragma:",
|
|
|
|
"cache-control:",
|
|
|
|
"authorization:",
|
|
|
|
"cookie:",
|
|
|
|
"content-length:",
|
|
|
|
"content-type:",
|
|
|
|
"date:",
|
|
|
|
"range:",
|
|
|
|
"referer:",
|
|
|
|
"sec-websocket-key:",
|
|
|
|
"sec-websocket-version:",
|
|
|
|
"sec-websocket-origin:",
|
2015-12-14 08:52:03 +08:00
|
|
|
|
2016-04-10 09:33:54 +08:00
|
|
|
":authority",
|
|
|
|
":method",
|
|
|
|
":path",
|
|
|
|
":scheme",
|
|
|
|
":status",
|
2015-12-14 08:52:03 +08:00
|
|
|
|
2014-10-12 14:31:47 +08:00
|
|
|
"accept-charset:",
|
|
|
|
"accept-ranges:",
|
|
|
|
"access-control-allow-origin:",
|
|
|
|
"age:",
|
|
|
|
"allow:",
|
|
|
|
"content-disposition:",
|
|
|
|
"content-encoding:",
|
|
|
|
"content-language:",
|
|
|
|
"content-location:",
|
|
|
|
"content-range:",
|
|
|
|
"etag:",
|
|
|
|
"expect:",
|
|
|
|
"expires:",
|
|
|
|
"from:",
|
|
|
|
"if-match:",
|
|
|
|
"if-range:",
|
|
|
|
"if-unmodified-since:",
|
|
|
|
"last-modified:",
|
|
|
|
"link:",
|
|
|
|
"location:",
|
|
|
|
"max-forwards:",
|
|
|
|
"proxy-authenticate:",
|
|
|
|
"proxy-authorization:",
|
|
|
|
"refresh:",
|
|
|
|
"retry-after:",
|
|
|
|
"server:",
|
|
|
|
"set-cookie:",
|
|
|
|
"strict-transport-security:",
|
|
|
|
"transfer-encoding:",
|
|
|
|
"user-agent:",
|
|
|
|
"vary:",
|
|
|
|
"via:",
|
|
|
|
"www-authenticate:",
|
2015-12-14 08:52:03 +08:00
|
|
|
|
2015-01-10 19:01:52 -08:00
|
|
|
"patch",
|
|
|
|
"put",
|
|
|
|
"delete",
|
2014-10-12 14:31:47 +08:00
|
|
|
|
2016-01-28 09:40:53 +08:00
|
|
|
"uri-args", /* fake header used for uri-only storage */
|
|
|
|
|
|
|
|
"proxy ",
|
|
|
|
"x-real-ip:",
|
2016-02-29 13:18:30 +08:00
|
|
|
"http/1.0 ",
|
2016-01-28 09:40:53 +08:00
|
|
|
|
2016-12-08 08:14:15 +08:00
|
|
|
"x-forwarded-for",
|
2017-02-12 20:32:49 +08:00
|
|
|
"connect ",
|
2016-12-08 08:14:15 +08:00
|
|
|
|
2014-10-12 14:31:47 +08:00
|
|
|
"", /* not matchable */
|
|
|
|
|
|
|
|
};
|