/
githubmirror
/
nghttp2
Обзор
Документация
Войти
/
githubmirror
/
nghttp2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
genheaderfunc.py
48 строк
859 B
Tatsuhiro Tsujikawa
nghttpx: Propagate stream priority from backend to frontend
05 ноя 2023, 10:23
05 ноя 2023, 10:23
ebd2555
Код
Авторство
О чём код?
#!/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", "priority", # disallowed h1 headers 'connection', 'keep-alive', 'proxy-connection', 'transfer-encoding', 'upgrade' ] if __name__ == '__main__': gentokenlookup(HEADERS, 'HD_')