sark-core 0.12.0

the L7 layer for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{Response, Serve, Shape};

pub trait IntoResponseShape<'req>: Sized {
    type Shape: Shape<'req>;

    fn into_response_shape(self) -> Self::Shape;
}

impl<'req> IntoResponseShape<'req> for Response {
    type Shape = Serve<'req>;

    fn into_response_shape(self) -> Self::Shape {
        self.into()
    }
}

impl super::super::__private::OwnedResponse for Response {}
impl super::super::__private::OwnedResponse for super::Chunked {}