-
Notifications
You must be signed in to change notification settings - Fork 43
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
Trailers in Semantics #220
Comments
Waiting on resolution of #16 before doing the last item. |
I am working on this now but keep finding larger structural editorial concerns that get in the way. Specifically, the message abstraction stuff really needs to be described earlier (in architecture) and then the message abstraction section is just talking about header fields and then we can add a section on trailer fields along with the definition of the Trailer header field. In progress, based on branch mnot-16. |
Ready for review in #219 |
Now that #219 has been merged, this might be ready to close or at least move on to the next step. I think we should open new issues for specific fields to be defined as usable in a trailer section. We should also generically define the closing headers frame in h2 as being a trailer section. |
This is still open and might as well be used for further discussion of mid-stream trailers, if needed. |
Does mid-stream trailers mean you could send multiple "header blocks" of trailers? In an API, would it then make sense to expose response trailers as a (streaming) sequence of header blocks that arrive concurrently with the response body? |
We discussed this in Singapore; I believe that would be a reasonable presentation by an API, yes. I think it basically amounts to saying that headers precede the body, while the trailers are a sequence of subsequent header blocks that might arrive any time from the end of the headers to the end of the stream. Intermediaries might collect them and put them all at the end, or drop them, or put them in the headers as is already the case with trailers. |
Yes
I expect that some applications would want an immediate notification/promise like API for specific field names received, while others might want a dictionary structure at the end of message processing. For example, a progress meter fed by trailer data would only be useful if it could read each field as it is received, whereas a cache validator might only be read by a post-render cleanup process outside the critical path. |
I think this is done with #111. @royfielding please open a separate issue for mid-stream trailers. |
Semantics barely mentions trailers, instead leaving much of their definition to messaging -- even though they're part of the version-independent definition of HTTP.
The text was updated successfully, but these errors were encountered: