| Crates.io | claro |
| lib.rs | claro |
| version | 0.8.0 |
| created_at | 2024-11-26 21:09:57.695045+00 |
| updated_at | 2025-04-25 21:51:28.960574+00 |
| description | A classic multi-threaded HTTP server |
| homepage | |
| repository | https://codeberg.org/eze-works/claro |
| max_upload_size | |
| id | 1462327 |
| size | 159,690 |
⚠️ Work in progress ...
A simple, predictable HTTP/1.1 server
use claro::{Response, Request};
let (server, shutdown_handle) = claro::listen("localhost:0", |_: &mut Request| {
Response::plain_text("Hello, world!")
}).unwrap();
// use server.wait() to block until the server terminates
shutdown_handle.stop();
This library will be interesting to you if any of the following describe you:
file-serveTurn around if: