#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

#740 in HTTP server

Download history 279/week @ 2024-10-12 201/week @ 2024-10-19 32/week @ 2024-10-26

512 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