Crate rusty_express [] [src]

Rusty Express is a simple server written in Rust and provide Express-alike APIs. This project aims to provide a http server solution which is easy to use, easy to scale, and is excellent on performance.

Examples

extern crate rusty_express; use rusty_express::prelude::*;

fn main() { let mut server = HttpServer::new(); server.get(RequestPath::Explicit("/"), simple_response); server.listen(8080); }

pub fn simple_response(req: &Box, resp: &mut Box) { resp.send(&format!("Hello world from rusty server from path: {}", req.uri)); resp.status(200); }

Modules

prelude

Structs

HttpServer

Traits

ServerDef