Skip to main content

Module server

Module server 

Source
Expand description

The HTTP server. Binds a TCP listener, runs each connection on its own Tokio task, and shuts down gracefully on Ctrl-C.

Structs§

Server

Functions§

serve_static
Serve a static file from disk. Strips path separators and rejects .. traversal.