Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
3db9c2c7
Commit
3db9c2c7
authored
Mar 12, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra tokenization of header names; they are not effective at best
parent
12dad328
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
411 deletions
+3
-411
genlibtokenlookup.py
genlibtokenlookup.py
+2
-58
lib/nghttp2_hd.c
lib/nghttp2_hd.c
+0
-296
lib/nghttp2_hd.h
lib/nghttp2_hd.h
+1
-57
No files found.
genlibtokenlookup.py
View file @
3db9c2c7
...
...
@@ -62,67 +62,11 @@ HEADERS = [
(
'vary'
,
58
),
(
'via'
,
59
),
(
'www-authenticate'
,
60
),
(
'accept-ch'
,
None
),
(
'accept-datetime'
,
None
),
(
'accept-features'
,
None
),
(
'accept-patch'
,
None
),
(
'access-control-allow-credentials'
,
None
),
(
'access-control-allow-headers'
,
None
),
(
'access-control-allow-methods'
,
None
),
(
'access-control-expose-headers'
,
None
),
(
'access-control-max-age'
,
None
),
(
'access-control-request-headers'
,
None
),
(
'access-control-request-method'
,
None
),
(
'alt-svc'
,
None
),
(
'alternates'
,
None
),
(
'te'
,
None
),
(
'connection'
,
None
),
(
'content-md5'
,
None
),
(
'content-security-policy'
,
None
),
(
'content-security-policy-report-only'
,
None
),
(
'dnt'
,
None
),
(
'forwarded'
,
None
),
(
'front-end-https'
,
None
),
(
'keep-alive'
,
None
),
(
'last-event-id'
,
None
),
(
'negotiate'
,
None
),
(
'origin'
,
None
),
(
'p3p'
,
None
),
(
'pragma'
,
None
),
(
'keep-alive'
,
None
),
(
'proxy-connection'
,
None
),
(
'public-key-pins'
,
None
),
(
'sec-websocket-extensions'
,
None
),
(
'sec-websocket-key'
,
None
),
(
'sec-websocket-origin'
,
None
),
(
'sec-websocket-protocol'
,
None
),
(
'sec-websocket-version'
,
None
),
(
'set-cookie2'
,
None
),
(
'status'
,
None
),
(
'tcn'
,
None
),
(
'te'
,
None
),
(
'trailer'
,
None
),
(
'tsv'
,
None
),
(
'upgrade'
,
None
),
(
'upgrade-insecure-requests'
,
None
),
(
'variant-vary'
,
None
),
(
'warning'
,
None
),
(
'x-api-version'
,
None
),
(
'x-att-deviceid'
,
None
),
(
'x-cache'
,
None
),
(
'x-cache-lookup'
,
None
),
(
'x-content-duration'
,
None
),
(
'x-content-security-policy'
,
None
),
(
'x-content-type-options'
,
None
),
(
'x-dnsprefetch-control'
,
None
),
(
'x-forwarded-for'
,
None
),
(
'x-forwarded-host'
,
None
),
(
'x-forwarded-proto'
,
None
),
(
'x-frame-options'
,
None
),
(
'x-powered-by'
,
None
),
(
'x-requested-with'
,
None
),
(
'x-ua-compatible'
,
None
),
(
'x-wap-profile'
,
None
),
(
'x-webkit-csp'
,
None
),
(
'x-xss-protection'
,
None
),
]
def
to_enum_hd
(
k
):
...
...
lib/nghttp2_hd.c
View file @
3db9c2c7
This diff is collapsed.
Click to expand it.
lib/nghttp2_hd.h
View file @
3db9c2c7
...
...
@@ -106,67 +106,11 @@ typedef enum {
NGHTTP2_TOKEN_VARY
=
58
,
NGHTTP2_TOKEN_VIA
=
59
,
NGHTTP2_TOKEN_WWW_AUTHENTICATE
=
60
,
NGHTTP2_TOKEN_ACCEPT_CH
,
NGHTTP2_TOKEN_ACCEPT_DATETIME
,
NGHTTP2_TOKEN_ACC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N_TCN
,
NGHTTP2_TOKEN_TE
,
NGHTTP2_TOKEN_TRAILER
,
NGHTTP2_TOKEN_TSV
,
NGHTTP2_TOKEN_UPGRADE
,
NGHTTP2_TOKEN_UPGRADE_INSECURE_REQUESTS
,
NGHTTP2_TOKEN_VARIANT_VARY
,
NGHTTP2_TOKEN_WARNING
,
NGHTTP2_TOKEN_X_API_VERSION
,
NGHTTP2_TOKEN_X_ATT_DEVICEID
,
NGHTTP2_TOKEN_X_CACHE
,
NGHTTP2_TOKEN_X_CACHE_LOOKUP
,
NGHTTP2_TOKEN_X_CONTENT_DURATION
,
NGHTTP2_TOKEN_X_CONTENT_SECURITY_POLICY
,
NGHTTP2_TOKEN_X_CONTENT_TYPE_OPTIONS
,
NGHTTP2_TOKEN_X_DNSPREFETCH_CONTROL
,
NGHTTP2_TOKEN_X_FORWARDED_FOR
,
NGHTTP2_TOKEN_X_FORWARDED_HOST
,
NGHTTP2_TOKEN_X_FORWARDED_PROTO
,
NGHTTP2_TOKEN_X_FRAME_OPTIONS
,
NGHTTP2_TOKEN_X_POWERED_BY
,
NGHTTP2_TOKEN_X_REQUESTED_WITH
,
NGHTTP2_TOKEN_X_UA_COMPATIBLE
,
NGHTTP2_TOKEN_X_WAP_PROFILE
,
NGHTTP2_TOKEN_X_WEBKIT_CSP
,
NGHTTP2_TOKEN_X_XSS_PROTECTION
,
}
nghttp2_token
;
struct
nghttp2_hd_entry
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment