Skip to content

Implement chunked TE #11

Description

@3Hren

This can be tricky, because:

  • If a response is set Content-Length header - we should not encode the body.
  • If there neither Content-Length header nor Transfer-Encoding: chunked - we should encode the body. Hyper can do it easily.
  • If there is Transfer-Encoding: chunked - we should firstly decode the body and to encode it again to avoid double-encoding.

Another issue is - there is some kind of accept logging. In the case of chunked TE it will be broken, as Hyper provides no way to notify when the last body chunk was written.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions