-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
http2 API documentation issues #25952
Copy link
Copy link
Open
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.http2Issues or PRs related to the http2 subsystem.Issues or PRs related to the http2 subsystem.
Compatibility API example
Here's the example code from the API docs in the compatibility API section:
The
Content-Typeheader is overwritten here inwriteHead(), but unless the reader knows thatwriteHead()merges its headers with the headers set insetHeader(), the reader may think there's something special going on here.Suggestion: remove first call to
setHeader(); ensure example is straightforwardNo documentation of
HTTP2_HEADER_*constantsThere are many references to e.g.,
http2.constants.HTTP2_HEADER_STATUS. These are not listed in the constants section. IsHTTP2_HEADER_CONTENT_TYPEdifferent than'Content-Type'? Can these be used interchangeably? If I use the compatibility API, should I use these constants?Suggestion: document the constants and when to use them.