#http-request #response #anyhow #multiple #thread-safe #rw-lock

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

#1102 in HTTP server

21 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