-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider to use draft-ietf-httpbis-binary-message to represent Response #18
Comments
I've read https://datatracker.ietf.org/doc/draft-ietf-httpbis-binary-message/. Let me share the brief summary what should be changed if we adopt RFC9292. Note that I don't have a strong opinion whether we should adopt RFC 9292 or not. That needs a discussion.
Changes
will be changed to:
known-length-response is "Known-Length Response" defined in https://www.rfc-editor.org/rfc/rfc9292.html#name-known-length-messages RFC 9292 also defines "Indeterminate-Length Response", but I don't see any usage of Indeterminate-Length Response in Web Bundles. Web Bundle format has an "Index" section, so Indeterminate-Length Response doesn't fit well. Each response's size must be predetermined by design. Drop the following statements (from 4.3 Responses):
No longer required? I don't see any background of this restriction.
Known-Length Response has "Final Response Control Data", which includes "status code". Fields which don’t make sense in Web BundlesI don’t see any usage of the following fields. But we may allow the following fields. In other words, Web Bundle format parser doesn’t emit parse errors. But we should say "Clients SHOULD ignore these fields." Known-Length Informational Response (..) ...,This is "Informational Status Codes (100-199)". e.g. Early Hint 103 Trailer fields (2nd Known-Length Field Section (..) in Known-Length Response)https://www.rfc-editor.org/rfc/rfc9110#section-5 It seems trailer fields are used only in proxy. No usage in Web Bundles. Other thoughtsGiven that the current Web Bundles format uses cbor encoding everywhere, it seems a bit downside if we adopt RFC9292 in Any ideas or opinions are welcome. |
I've skimmed https://datatracker.ietf.org/doc/draft-ietf-httpbis-binary-message/.
My understanding is that we probably can use that format to represent "response" in the Responses section , instead of the current encoding for headers and payload.
eg.
Before:
After:
I've not dived into it deeply, but this might be worth considering. Let me file an issue here to start a discussion to confirm how that'll fit well.
The text was updated successfully, but these errors were encountered: