rohanasan 0.5.47

An extremely fast backend framework for rust! Built from scratch using tokio, easy to use and asynchronous. Available for multiple programming languages and cross-platform.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// This is a basic hello world implementation in Rohanasan
use rohanasan::{rohanasan, send_http_response, serve, Request, DEFAULT_HTML_HEADER};

fn handle(req: Request) -> String {
    send_http_response(DEFAULT_HTML_HEADER, "<h1>Hello!</h1>", req)
}

fn main() {
    rohanasan! {
        serve(8080, handle)
    }
}