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 rewind and rewindable? as a general concept. #60

Merged
merged 4 commits into from
Aug 28, 2024
Merged

Conversation

ioquatix
Copy link
Member

@ioquatix ioquatix commented Aug 14, 2024

There are situations where we need to rewind the input or output, for example idempotent request handling and redirects. Previously, body.respond_to?(:rewind) was used but it's better to expose a predicate.

In addition, I noticed that we have two usage of wrap(body) and wrap(request|response). I'd like to use a different method name if possible, and this also applies to rewindable body wrappers.

Types of Changes

  • New feature.
  • Maintenance.

Contribution

@ioquatix ioquatix merged commit a750ec4 into main Aug 28, 2024
47 of 50 checks passed
@ioquatix ioquatix deleted the rewindable branch August 28, 2024 22:43
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