sark_core/http/response/into_response_shape.rs
1use super::{Response, Serve, Shape};
2
3pub trait IntoResponseShape<'req>: Sized {
4 type Shape: Shape<'req>;
5
6 fn into_response_shape(self) -> Self::Shape;
7}
8
9impl<'req> IntoResponseShape<'req> for Response {
10 type Shape = Serve<'req>;
11
12 fn into_response_shape(self) -> Self::Shape {
13 self.into()
14 }
15}
16
17impl super::super::__private::OwnedResponse for Response {}
18impl super::super::__private::OwnedResponse for super::Chunked {}