- From: Louis Ryan <notifications@github.com>
- Date: Thu, 02 Apr 2015 09:16:31 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Message-ID: <whatwg/fetch/issues/34/88963593@github.com>
You should also consider how you want to allow client generated requests to produce trailers. As chunked-encoding must be used in this case and this would have to be specified before the body is produced for HTTP/1.1. https://tools.ietf.org/html/rfc7230#section-4.1 Separately the client needs to indicate whether it is willing to accept trailers in the response using "TE: trailers", specifying this via the normal request headers mechanism seems sufficient. https://tools.ietf.org/html/rfc7230#section-4.1.2 Given that trailers are strictly limited to occurring after the last transfer chunk and that the content of the trailers may vary based on the application behavior right up until writing the last chunked byte it seems the API should not require the trailer values prior to receiving the last byte on the stream. A decision also needs to be made about how to interpret the "Trailer" header itself, though given that it's a SHOULD in the spec I suspect it should just be propagated with the initial header values rather than using it to implement some strict presence checks for the subsequent trailers https://tools.ietf.org/html/rfc7230#section-4.4 --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/34#issuecomment-88963593
Received on Thursday, 2 April 2015 16:17:10 UTC