may_minihttp
Mini http server that implemented on top of may
This crate is ported from tokio_minihttp.
But with much ease of use, you can call MAY
block APIs directly in your service.
Usage
First, add this to your Cargo.toml
:
[]
= "0.1"
Then just simply implement your http service
extern crate may_minihttp;
use io;
use ;
;
// Start the server in `main`.
Performance
Tested with only one working thread on my laptop
Both with the following command to start the server.
$ cargo run --example=hello-world --release
tokio_minihttp
may_minihttp
Benchmarks
One of the fastest web frameworks available according to the TechEmpower Framework Benchmark.
License
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.