mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-21 00:00:14 +02:00
Implement IntoResponse for Body
This commit is contained in:
@@ -59,6 +59,12 @@ impl IntoResponse for Response<Body> {
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoResponse for Body {
|
||||
fn into_response(self) -> Response<Body> {
|
||||
Response::new(self)
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoResponse for &'static str {
|
||||
#[inline]
|
||||
fn into_response(self) -> Response<Body> {
|
||||
|
||||
Reference in New Issue
Block a user