astra 0.4.0

A blocking HTTP server built on hyper.
Documentation
1
2
3
4
5
6
7
use astra::{Body, Response, Server};

fn main() {
    Server::bind("127.0.0.1:3000")
        .serve(|_req, _info| Response::new(Body::new("Hello World!")))
        .expect("serve failed");
}