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

Refactor Extractors #72

Open
fundon opened this issue Feb 19, 2023 · 1 comment
Open

Refactor Extractors #72

fundon opened this issue Feb 19, 2023 · 1 comment
Milestone

Comments

@fundon
Copy link
Member

fundon commented Feb 19, 2023

  1. The mutable request is only needed if the infos needs to be modified, or if the body data needs to be extracted.
  2. Other cases do not require mutable

Three APIs

  • extract(): mut req is needed, e.g. extract body
  • extract_ref(): extract a reference
  • extract_cloned(): extract and clone
  • extract_sync: Most cases do not require async/await
@fundon fundon added this to the 0.5.0 milestone Feb 21, 2023
@fundon
Copy link
Member Author

fundon commented Apr 28, 2023

Maybe we don't need it.

@fundon fundon modified the milestones: 0.5.0, 1.0.0 Dec 20, 2023
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

No branches or pull requests

1 participant