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
29
30
31
32
33
34
35
36
37
38
39
40
pub mod context;
#[cfg(feature = "cookie")]
pub mod cookie;
pub mod extension;
pub mod extract;
pub mod handler;
pub mod layer;
pub mod middleware;
pub mod param;
pub mod request;
pub mod response;
pub mod route;
pub mod server;

mod macros;

use std::convert::Infallible;

pub use bytes::Bytes;
pub use hyper::{
    self,
    body::Incoming as BodyIncoming,
    http::{self, HeaderMap, HeaderName, HeaderValue, Method, StatusCode, Uri, Version},
};
pub use volo::net::Address;

#[cfg(feature = "cookie")]
pub use crate::cookie::CookieJar;
pub use crate::{
    context::{ConnectionInfo, HttpContext},
    extension::Extension,
    extract::{Form, Json, MaybeInvalid, Query, State},
    param::Params,
    request::Request,
    response::Response,
    route::Router,
    server::Server,
};

pub type DynService = motore::BoxCloneService<HttpContext, BodyIncoming, Response, Infallible>;