mirror of
https://github.com/tokio-rs/axum.git
synced 2025-02-16 18:31:51 +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 {
|
impl IntoResponse for &'static str {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn into_response(self) -> Response<Body> {
|
fn into_response(self) -> Response<Body> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue