1 Star 0 Fork 33

openharmony-sync / third_party_nghttp2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
genheaderfunc.py 843 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python3
from gentokenlookup import gentokenlookup
HEADERS = [
':authority',
':method',
':path',
':scheme',
':status',
':host', # for spdy
':protocol',
'expect',
'host',
'if-modified-since',
"te",
"cookie",
"http2-settings",
"server",
"via",
"forwarded",
"x-forwarded-for",
"x-forwarded-proto",
"alt-svc",
"content-length",
"location",
"trailer",
"link",
"accept-encoding",
"accept-language",
"cache-control",
"user-agent",
"date",
"content-type",
"early-data",
"sec-websocket-accept",
"sec-websocket-key",
# disallowed h1 headers
'connection',
'keep-alive',
'proxy-connection',
'transfer-encoding',
'upgrade'
]
if __name__ == '__main__':
gentokenlookup(HEADERS, 'HD_')
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sync/third_party_nghttp2.git
git@gitee.com:openharmony-sync/third_party_nghttp2.git
openharmony-sync
third_party_nghttp2
third_party_nghttp2
master

搜索帮助