ehttpd 0.13.1

A HTTP server nano-framework, which can be used to create custom HTTP server applications
Documentation
#[cfg(feature = "server")]
fn main() {
    use ehttpd::Server;
    use ehttpd::http::Response;

    // Create a server that listens at [::]:9999 with up to 2048 worker threads under load if necessary
    let server = Server::with_request_response(2048, |_| {
        let mut response = Response::new_200_ok();
        response.set_body_data(b"Hello world\r\n");
        response.set_connection_close();
        response
    });

    // Handle incoming connections
    let Err(e) = server.accept("[::]:9999");
    panic!("Server failed: {e}");
}

#[cfg(not(feature = "server"))]
fn main() {
    panic!("The `server`-feature must be enabled for this example to run")
}