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
The current approach is not very sound since it only contemplates the "happy path". Failed requests such as 4XX and 5XX should be returned immediately when trying to do a chunked request.
Using the header Expect: 100-continue forces the server to send an initial 100 (Continue) status when the request is successful and an additional final status when the request body is fully sent (HTTP Specs). We can return the initial 100 to the user and the final status when all the body chunks are sent.
The text was updated successfully, but these errors were encountered:
jfacorro
changed the title
Chunked requests: use "Expect: 100-conitnue" header and improve error handling
Chunked requests: use "Expect: 100-continue" header and improve error handling
Nov 19, 2015
The current approach is not very sound since it only contemplates the "happy path". Failed requests such as
4XX
and5XX
should be returned immediately when trying to do a chunked request.Using the header
Expect: 100-continue
forces the server to send an initial100 (Continue)
status when the request is successful and an additional final status when the request body is fully sent (HTTP Specs). We can return the initial100
to the user and the final status when all the body chunks are sent.The text was updated successfully, but these errors were encountered: