mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-26 00:00:23 +02:00
Introduce Response type alias as a shorthand for Response<BoxBody> (#590)
* Introduce `Response` type alias as a shorthand * Don't re-export `Response` at the crate root
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
use axum::{
|
||||
body::BoxBody,
|
||||
http::Response,
|
||||
response::IntoResponse,
|
||||
response::{IntoResponse, Response},
|
||||
};
|
||||
use axum_debug::debug_handler;
|
||||
|
||||
@@ -15,7 +14,7 @@ impl A {
|
||||
}
|
||||
|
||||
impl IntoResponse for A {
|
||||
fn into_response(self) -> Response<BoxBody> {
|
||||
fn into_response(self) -> Response {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user