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

Add ServiceRequest::extract #2647

Merged
merged 6 commits into from Apr 2, 2022

Conversation

LukeMathWalker
Copy link
Contributor

@LukeMathWalker LukeMathWalker commented Feb 12, 2022

PR Type

Feature

PR Checklist

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

A shortcut to make it easier to leverage extractors in middleware implementations (i.e. do not require newcomers to go through packing/unpacking of ServiceRequest into its inner components).

@robjtede robjtede added this to the actix-web post-v4 milestone Feb 12, 2022
@robjtede robjtede added A-web project: actix-web B-semver-minor labels Feb 12, 2022
@fakeshadow
Copy link
Contributor

ServiceRequest would go in the future. Adding shortcut like this is pointless and add more burden to maintainer and user for it's short life span.

@robjtede robjtede modified the milestones: actix-web post-v4, actix-web v4.1 Mar 1, 2022
@robjtede robjtede force-pushed the extract-from-service-request branch from 78f0406 to 95cff76 Compare March 28, 2022 21:59
@robjtede robjtede merged commit de9e414 into actix:master Apr 2, 2022
@bradleyess
Copy link

Great QoL change. Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants