Crab HTTP 🦀

View on GitHub

Fast, and Minimal HTTP Server written in Rust 🦀

Crab HTTP is an open-source HTTP server built in Rust. Blazing fast, and designed for embedded and cloud-native systems.

Features

Secure by Design

Memory safety guaranteed by Rust. Includes basic protection against common attacks.

Embedded-Ready

Lightweight enough to run on edge devices or single-board computers with limited resources.

Open Source

Licensed under MIT. Actively maintained and open to community contributions.

CLI usage

  • -d - Specify the directory to serve files from.
  • -p - Specify the port to listen on.
  • --allow-write - Allow write permission via POST request.
  • -t - Set timeout duration (in seconds).
  • --help - Display help information.

Send request to the server

  • curl --http1.1 https://httpserver.arjav.hackclub.app/echo/hello-world -H "Connection: close" - Use the /echo route that returns the string specified in the route