6 releases

new 0.1.5 Dec 16, 2024
0.1.4 Dec 2, 2024
0.1.3 Nov 28, 2024

#332 in HTTP server

Download history 169/week @ 2024-11-22 233/week @ 2024-11-29 17/week @ 2024-12-06 124/week @ 2024-12-13

543 downloads per month

MIT license

15KB
213 lines

A Simple HTTP Server Implementation

Example

Create a server instance and register a GET route:

use guest_server::{Server, HttpResponse};

let mut server = Server::new();

server.get("/", home);

fn home(_: String) -> HttpResponse {
        HttpResponse::new(200, Some("Hello, World!".to_string()))
}

server.listener(80);

No runtime deps