Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spansy: support Transfer-Encoding #35

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

lancenonce
Copy link

Fixes #34

In order to support HTTP Transfer Encoding, when these headers are detected, we assign the transfer_encoding value to usize::MAX to flag that the response must be parsed for Transfer Encoding formats.

After some review, we believe it's best not to use usize::MAX. [from @sinui0]: We need to modify the Body type and add the types to represent a chunked body. Also the spans in the content type, eg application/json, need to account for the chunking boundaries

Work in progress; todo:

  • correct implementation approach
  • unit tests
  • integration tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spansy: support Transfer-Encoding
1 participant