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

Improve handler APIs in a number of places #27

Merged
merged 7 commits into from
Nov 7, 2021
Merged

Conversation

w-henderson
Copy link
Owner

No description provided.

@w-henderson w-henderson added enhancement New feature or request core Issues relating to the `humphrey` crate labels Nov 6, 2021
@w-henderson
Copy link
Owner Author

Closes #26.

@w-henderson
Copy link
Owner Author

Closes #23.

@w-henderson
Copy link
Owner Author

Summary

  • adds with_stateless_route and with_path_aware_route to App
  • fixes App::get_state to return Arc<T> not &Arc<T>
  • updates serve_dir handler to be a PathAwareRouteHandler
  • adds a Response::redirect convenience method
  • adds a redirect handler
  • updates static content example to showcase these changes

@w-henderson w-henderson merged commit 75ec382 into master Nov 7, 2021
@w-henderson w-henderson deleted the improved-handlers branch November 7, 2021 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues relating to the `humphrey` crate enhancement New feature or request
Projects
Status: 🚀 Released
Development

Successfully merging this pull request may close these issues.

1 participant