Skip to content

Conversation

@TingDaoK
Copy link
Contributor

@TingDaoK TingDaoK commented Dec 16, 2022

  • update the notes for transferring h1 to h2, that host will be removed
  • note about that the client is not part of the user-agent, and no security check will be performed about the headers.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

* `:scheme` is default to be "https". If a different scheme wants to be used, create the HTTP/2 message directly
* Note:
* - if `host` exist, it will be removed and `:authority` will be added using the information.
* - `:scheme` is always default to be "https". If a different scheme wants to be used,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ":scheme always defaults to "https". To use a different scheme create the HTTP/2 message directly"

* Tip for language bindings: Do not bind the `options` struct. Use something more natural for your language,
* such as Builder Pattern in Java, or Python's ability to take many optional arguments by name.
*
* Note: The header of the request will be sent as it is. Unless HTTP/1 message used on HTTP/2 connection, then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is a bit confusing. maybe explicitly state that for http1 messages on http1 connection and http2 on http2 con headers are sent as is, but for corner case of http1 message on http2 this corner case applies.

Might also be worth mentioning what happens with reverse http2 message on http1 conn

@TingDaoK TingDaoK merged commit 4e82c1e into main Dec 20, 2022
@TingDaoK TingDaoK deleted the document branch December 20, 2022 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants