1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use bytes::Bytes;
pub mod body;
pub mod error;
pub mod ext;
pub mod parsed_request;
pub mod parsed_response;
pub mod request;
pub mod response;

#[macro_use]
pub(crate) mod macros;

pub(crate) mod waker;

pub trait FromParts<P, B = Bytes> {
    fn from_parts(parts: P, body: B) -> Self;
}

pub trait IntoParts {
    type Parts;
    type Body;
    fn into_parts(self) -> (Self::Parts, Self::Body);
}

pub trait BorrowHeaderMap {
    fn header_map(&self) -> &http::HeaderMap;
    fn header_map_mut(&mut self) -> &mut http::HeaderMap;
}