1 unstable release
new 0.1.0 | Jan 30, 2025 |
---|
#388 in HTTP server
42 downloads per month
38KB
520 lines
Supported Protocols
Usage examples:
- See rest Example.
Cargo.toml:
[dependencies]
maker_web = "0.1.0"
src/main.rs:
use maker_web::{HttpServer, Request, Response};
use tokio::net::TcpListener;
use http::StatusCode;
#[tokio::main]
async fn main() {
HttpServer::launch(TcpListener::bind("127.0.0.1:80").await.unwrap(), work).await;
}
#[inline]
async fn work(_request: Request) -> Response {
Response::from_response(StatusCode::OK, "All Good :)")
}
Future of the Library
The library will be updated as new proposals and ideas are received. I will try to post a new update every month.
Dependencies
~4–10MB
~98K SLoC