mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 15:17:18 +01:00
Implement IntoResponse
for Body
This commit is contained in:
parent
1fb80a1129
commit
f25f7f90ff
1 changed files with 6 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue