Skip to main content

Crate rustlavel_http

Crate rustlavel_http 

Source
Expand description

rustlavel-http: the HTTP layer, written from scratch on Tokio’s TCP.

Parsing, routing, the middleware pipeline, request and response types, the development error page, and a test client that dispatches without a socket.

Re-exports§

pub use cookie::Cookie;
pub use cookie::SameSite;
pub use files::Files;
pub use handler::Handler;
pub use headers::Headers;
pub use method::Method;
pub use middleware::Middleware;
pub use middleware::Next;
pub use plugin::Plugin;
pub use plugin::Setup;
pub use request::Request;
pub use response::IntoResponse;
pub use response::Response;
pub use router::Resource;
pub use router::Route;
pub use router::RouteHandle;
pub use router::Router;
pub use server::Limits;
pub use server::Server;
pub use status::Status;
pub use testing::TestClient;
pub use testing::TestResponse;
pub use upgrade::Upgrade;
pub use upgrade::Upgraded;

Modules§

cookie
Cookie construction and parsing.
error_page
The development error page.
files
Serving static files out of a directory, for public/.
handler
headers
Case-insensitive header storage.
method
middleware
The middleware pipeline.
panic
Catching panics inside a handler so one bad request cannot take down the connection — and so the dev error page can show where it happened.
plugin
How an optional package attaches itself to an application.
request
response
router
The router: what an application’s routes/web.rs fills in.
server
The HTTP/1.1 server: accept loop, request parsing, keep-alive, and a graceful shutdown that lets in-flight requests finish.
status
testing
The test client.
upgrade
Handing a connection over to another protocol.
url
Percent-encoding and query-string handling.