1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
7
8mod app;
9mod body;
10mod cors;
11mod error;
12mod extract;
13mod handler;
14mod response;
15mod router;
16mod state;
17
18pub use app::{shutdown_signal, App, PeerAddr, RouteBuilder, DEFAULT_MAX_HEADER_BYTES};
19pub use body::{body_bytes, json_body, MaxBodySize, DEFAULT_MAX_BODY_SIZE};
20pub use cors::{CorsConfig, CorsConfigBuilder, CorsConfigError};
21pub use error::ServeError;
22pub use extract::{path_params, query_params};
23pub use handler::{body, handler, BodyError, Handler, Middleware, OnUpgrade, ResponseBody, UpgradedIo};
24pub use response::json;
25pub use router::{PathParams, PathSegments, QueryParams};
26pub use state::State;