Http Server lib for Rust
web_server is a small, dependency-less crate for creating HTTP servers.
When you coding the backend using Rust, the most annoying thing could be the size of a freamwork and the time needed to compile the application
The web_server package fixes these problems. web_server has no dependencies, but allows you to create full-fledged servers
First server using web_server
extern crate web_server;
new
.get
.launch
.unwrap;
It's easy!
First you must create instance of HttpServer
new
then you can declare your endpoints. E.g.
.get
.post
.route
.any
Now you must run server by launch method
.launch.unwrap
Receiving post data
e.g.
use x_www_form_urlencoded;
new
.post
.launch
.unwrap;
Read examples/ to know more!