httpbin 0.3.3

A httpbin reimplementation in rust. Works as a library and as a standalone webserver binary. (not affiliated to the original httpbin)
Documentation
1
2
3
4
5
6
7
8
9
10

use pages::{Response};
use service::{Request};

const INDEX_TEMPLATE: &'static str = include_str!("../templates/index.html");


pub fn serve<S: 'static>(req: Request) -> Response<S> {
    req.html(INDEX_TEMPLATE)
}