1#!/usr/bin/env python
2
3from gentokenlookup import gentokenlookup
4
5HEADERS = [
6    ':authority',
7    ':method',
8    ':path',
9    ':scheme',
10    ':status',
11    ':host', # for spdy
12    ':protocol',
13    'expect',
14    'host',
15    'if-modified-since',
16    "te",
17    "cookie",
18    "http2-settings",
19    "server",
20    "via",
21    "forwarded",
22    "x-forwarded-for",
23    "x-forwarded-proto",
24    "alt-svc",
25    "content-length",
26    "location",
27    "trailer",
28    "link",
29    "accept-encoding",
30    "accept-language",
31    "cache-control",
32    "user-agent",
33    "date",
34    "content-type",
35    "early-data",
36    "sec-websocket-accept",
37    "sec-websocket-key",
38    # disallowed h1 headers
39    'connection',
40    'keep-alive',
41    'proxy-connection',
42    'transfer-encoding',
43    'upgrade'
44]
45
46if __name__ == '__main__':
47    gentokenlookup(HEADERS, 'HD_')
48