Closed Hosar closed 7 years ago
As per HTTP/2 spec some headers are forbidden:
An HTTP/2.0 request or response MUST NOT include any of the following header fields: Connection, Host, Keep-Alive, Proxy-Connection, Transfer-Encoding, and Upgrade
This means that for HTTP/2 you won't be able to use
'Connection': 'Transfer-Encoding', 'Transfer-Encoding': 'chunked'
My personal opinion is that you should not chunk your data manually, HTTP/2 should handle this for you. I guess you should just remove Connection
and Transfer-Encoding
headers from your response.
@pavel thank you for answering this one.
@Hosar do you consider your needs fulfilled? Am I good to close this one?
Yeap sure, thank for your help!
First, thank you for this awesome work.
I've been working with node-spdy and it works really fine. Now I want to stream a set of chunks of information. What I'm doing is as follow:
This works fine, but the request is changing the protocol to http/1.1 (img). Is there a better way to do the same, but with http2 ?
Thanks in advance.