Expand description
Snowboard: A simple HTTP server library in Rust.
Support for sync & async functions, depending on feature flags. Refer to README.md for more details.
Macros
- A quick way to create a header HashMap.
- A quick way to create responses.
Structs
- A server request. Parses the raw request string into a more usable format.
- Response struct. Contains the response data and converts it to text if needed.
- Single threaded listener made for simpler servers.
- A TCP stream between a local and a remote socket.
- A parsed URL.
Enums
- HTTP protocol version.
HttpVersion::UNKNOWNis used when the version is not specified or not valid. - Any valid HTTP method.
Constants
- The size of the buffer used to read incoming requests. It’s set to 8KiB by default.
- The default HTTP version used by the server.
Type Aliases
- A type alias for
std::io::Result<()>used inServer::new()?.run(...).