You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In HTTP/2, the response headers and status code for a pushed resource shouldn't have to be sent immediately.
It would be very useful if we had the option to defer sending the response headers and status code, giving us the chance to fetch them from another server along with the response body.
The relevant code seems to be in http2/framer.js, in pushFrame(), in the callback to _checkPush. The status code and response headers are compressed and sent immediately.
The text was updated successfully, but these errors were encountered:
I would also like to see the push API changed to return a transport.Stream in the reserved state, before the response's HEADERS frame is sent. This would match the other implementations:
The node-http2 library returns a ServerResponse. (Source)
The Node.js 8+ experimental http2 implementation returns a ServerHttp2Stream. (Source)
Thanks for giving us such an awesome node module!
In HTTP/2, the response headers and status code for a pushed resource shouldn't have to be sent immediately.
It would be very useful if we had the option to defer sending the response headers and status code, giving us the chance to fetch them from another server along with the response body.
The relevant code seems to be in http2/framer.js, in pushFrame(), in the callback to _checkPush. The status code and response headers are compressed and sent immediately.
The text was updated successfully, but these errors were encountered: