warp 0.1.7

serve the web at warp speeds
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![deny(warnings)]
extern crate warp;

use warp::Filter;

fn main() {
    // Match any request and return hello world!
    let routes = warp::any()
        .map(|| "Hello, World!");

    warp::serve(routes)
        .run(([127, 0, 0, 1], 3030));
}