Skip to content

πŸ¦€ yet another http web server

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

foldright/micro-http

Folders and files

NameName
Last commit message
Last commit date
Feb 21, 2025
Feb 26, 2025
Dec 4, 2024
Feb 16, 2025
Feb 21, 2025
Feb 18, 2023
Feb 18, 2023
Feb 21, 2025
Dec 16, 2024
Feb 4, 2025

Repository files navigation

Micro Http

Crates.io Crates.io Actions Status Actions Status

A lightweight, efficient, and modular HTTP server implementation built on top of tokio.

Features

  • Full HTTP/1.1 protocol support, HTTP/2 currently unsupported
  • Asynchronous I/O using tokio
  • Streaming request and response bodies
  • Chunked transfer encoding
  • Keep-alive connections
  • Expect-continue mechanism
  • Efficient memory usage through zero-copy parsing
  • Structured logging with tracing

Crates

This workspace contains the following crates:

Quick Start

Add this to your Cargo.toml:

[dependencies]
micro-web = "0.1"
tokio = { version = "1", features = ["full"] }

See the getting started example for a complete working example.

Performance

For performance benchmarks and comparisons, see (we are not in this benchmark yes, but we will):

Development

MSRV

The Minimum Supported Rust Version is 1.85

License

Licensed under either of:

at your option.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.