The last example on 8.1.1 seems to be faulty HTTP/1.1 200 OK HEADERS Content-Type: image/jpeg ===> - END_STREAM Content-Length: 123 + END_HEADERS TE: trailers :status = 200 123 content-type = image/jpeg {binary data} content-length = 123 0 Foo: bar DATA - END_STREAM {binary data} HEADERS + END_STREAM + END_HEADERS foo: bar The TE header is a request header. It should probably be Transfer-Encoding: chunked. Also content-length and Transfer-Enconding are not use at the ame time. It is a little bit unclear how indication of content length (closing the connection, content-length or transfer encoding: chunked as in HTTP/1.0 and 1.1) relates to the END_STREAM and END_HEADERS flags. For dynamically generated content, content-length is not always known, so can content-length be used in this particular example? cheers Salvatore www.sloreto.comReceived on Saturday, 5 October 2013 15:32:13 UTC
This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:43:38 UTC