Skip to main content

Module server

Module server 

Source

Re-exports§

pub use crate::handler::handle;
pub use crate::handler::handle_func;

Structs§

Server
An HTTP/1.1 server. Mirrors Go’s http.Server.

Functions§

listen_and_serve
Bind to addr, use handler (or DefaultServeMux if None), and serve.
listen_and_serve_tls
Bind to addr, load TLS credentials, and serve HTTPS.