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
41
42
43
44
45
46
47
48
49
//! Async HTTP/1.1 framework built on Tokio (no Hyper / Axum).
//!
//! # Quick start
//!
//! ```ignore
//! use pulse_http::{Request, Response, Router, Server};
//!
//! #[tokio::main]
//! async fn main() {
//! let router = Router::new().get("/health", |_req: Request| async {
//! Response::ok("ok")
//! });
//!
//! Server::bind("127.0.0.1:3000".into())
//! .await
//! .router(router)
//! .serve()
//! .await;
//! }
//! ```
//!
//! # v0.1 scope
//!
//! Included: keep-alive, `Content-Length` bodies, routing, middleware, JSON,
//! url-encoded forms, typed state, rate limits, CORS, graceful shutdown.
//!
//! Not yet (planned for later): chunked transfer encoding, multipart uploads,
//! streaming responses, write timeouts, fuzz tests, and benchmarks.
pub use FormError;
pub use ;
pub use ;
pub use ;
pub use Response;
pub use ;
pub use Server;
pub use State;