Crate snowboard

source ·
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::UNKNOWN is used when the version is not specified or not valid.
  • Any valid HTTP method.

Constants

Type Aliases

  • A type alias for std::io::Result<()> used in Server::new()?.run(...).