rohanasan 0.5.2

An extremely fast backend framework for rust! Built from scratch using async-std, easy to use and asynchronous. Available for multiple programming languages and cross-platform.
Documentation
use rohanasan::{rohanasan, send_file, send_http_response, serve, Request, DEFAULT_HTML_HEADER, url_decode};
fn handle(req: Request) -> String {
    if req.path == "/" {
        send_http_response(DEFAULT_HTML_HEADER, "<h1>Hello!</h1>", req.data)
    }
    else if req.path == "/hello" {
        send_file(DEFAULT_HTML_HEADER, "./html/hello.html", req.data)
    }
    else if req.path == "/req"{
        if url_decode(req.get_request) == "q=hello world"{
            send_http_response(DEFAULT_HTML_HEADER, "<h1>Hi world!</h1>", req.data)
        }
        else{
            send_http_response(DEFAULT_HTML_HEADER, "<h1>World?</h1>", req.data)
        }
    }
    else {
        send_http_response(DEFAULT_HTML_HEADER, "<h1>404</h1>", req.data)
    }
}

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