Skip to content
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 #47

Closed
martinthomson opened this issue Mar 1, 2013 · 3 comments
Closed

Trailers #47

martinthomson opened this issue Mar 1, 2013 · 3 comments

Comments

@martinthomson
Copy link
Collaborator

Clearly, HEADERS can be used to support HTTP/1.1 trailers, or even mid-response additional headers. Trailers do have their uses, but are poorly supported. We need to say something about them, but what will that be?

Since trailers are non-critical, we could remove support entirely. Or we could allow arbitrary numbers of HEADERS frames with some rules about which ones can be ignored safely. Or something in between.

@grmocg
Copy link
Contributor

grmocg commented Mar 4, 2013

I think of this as being about the mapping of the protocol primitives to the HTTP semantics.

As an example use-case for sending metadata during the stream, imagine providing a signed cryptographic hash of content via the HEADERS frame in a session speaking in the clear over port 80 periodically.

This may imply that we wish to have two different ways of providing metadata (perhaps signaled via a flag in the HEADERS frame?), one which is provided to the application layer, and another which exists to provide data to mechanisms below.

Basically, I think we should define that the first HEADERS are equivalent to request headers, and say that the rest of any HEADERS sent on a stream should be ignored at the HTTP semantic layer (at least for now).

@jasnell
Copy link
Contributor

jasnell commented Apr 23, 2013

Not convinced that an additional flag is necessary. The initial request/response headers ought to be limited to the initial Headers+Priorities frame and possibly a single header continuation frame past last. All other headers frames ought to be passed on and made available to higher levels in the stack with only, perhaps, a few limited exceptions.

@mnot
Copy link
Member

mnot commented Jun 13, 2013

Discussed at SF Interim.

For first implementation draft, only the first headers (pre-data) are mapped to HTTP headers; we'll discuss trailers after.

@mnot mnot closed this as completed Jul 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants