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

Introduce Body#discard for efficiently ignoring body. #69

Merged
merged 2 commits into from
Sep 17, 2024
Merged

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Sep 15, 2024

In some cases, it is desirable to quickly throw away a body without stalling a connection. In the case of HTTP/1, e.g. connection: close the only option is to close the underlying stream. In HTTP/2, there are other options.

Types of Changes

  • New feature.

Contribution

@ioquatix ioquatix changed the title Initial idea. Introduce Body#discard for efficiently ignoring body. Sep 17, 2024
@ioquatix ioquatix merged commit 4ce40b4 into main Sep 17, 2024
34 of 40 checks passed
@ioquatix ioquatix deleted the body-discard branch September 17, 2024 02:25
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.

1 participant