mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Support nesting services with error handling
This commit is contained in:
@@ -8,6 +8,8 @@ use tower::util::Either;
|
||||
pub trait IntoResponse<B> {
|
||||
fn into_response(self) -> Response<B>;
|
||||
|
||||
// TODO(david): remove this an return return `Response<B>` instead. That is what this method
|
||||
// does anyway.
|
||||
fn boxed(self) -> BoxIntoResponse<B>
|
||||
where
|
||||
Self: Sized + 'static,
|
||||
|
||||
Reference in New Issue
Block a user