#http-request #response #anyhow #multiple #error #thread-safe

fobserver

A lightweight and straightforward HTTP server library written in Rust

5 releases

0.2.4 Oct 24, 2024
0.2.3 Oct 24, 2024
0.1.3 Oct 13, 2024

#815 in HTTP server

Download history 269/week @ 2024-10-09 17/week @ 2024-10-16 229/week @ 2024-10-23 18/week @ 2024-10-30 6/week @ 2024-11-06

283 downloads per month

MIT license

29KB
418 lines

Simple HTTP Server Library

A lightweight and straightforward HTTP server library written in Rust. This library is designed to handle basic HTTP requests and responses using minimal external dependencies, only relying on log and anyhow.

Features

  • Lightweight HTTP server implementation.
  • Simple request routing with support for multiple HTTP methods.
  • Uses only log for logging and anyhow for error handling.
  • Thread-safe argument handling with Arc<RwLock<Args>>.

Getting Started

Prerequisites

  • Rust (version 1.47 or higher)

Installation

Add the following to your Cargo.toml:

[dependencies]
fobserver = "0.2.4"

Dependencies

~220KB