Skip to content

Chunked requests: use "Expect: 100-continue" header and improve error handling  #120

@jfacorro

Description

@jfacorro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions