-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Gotham IntoResponse feature? #175
Comments
Sure, bring it on! Search for "rocket" or "iron" to see all the pieces on how to put it all together. |
Gotham is a hyper wrapper, really functionality is not Gotham but hyper. So it would make more sense in the feature |
@botika The distinction is that struct FooBar;
impl Into<hyper::Response<hyper::Body>> for Foobar { ... }
fn hello(state: State) -> (State, impl IntoResponse) {
(state, FooBar{}.into())
} |
Ok, thanks |
My favorite stack includes both this crate and the
gotham
web framework. It'd be awesome to have an implementation of itsIntoResponse
trait to make rendering that much simpler and ergonomic. I'm happy to work on this feature and submit a pull request, but wanted to make sure this would be of interest as a crate feature.The text was updated successfully, but these errors were encountered: