corruption 0.1.2

Undocumented rust web framework
docs.rs failed to build corruption-0.1.2
Please check build logs and if you believe this is docs.rs' fault, report into this issue report.

Corruption

Undocumented rust web framework made with :footprints:

Usage

Do not use. Dev in progress.

extern crate corruption;

use corruption::Corruption;
use corruption::response::Response;


fn main() {
    // Start Corruption
    let mut corruption = Corruption::new();

    // Declare routes
    corruption
        .get("/test", |_| Response::html_str("<p>test ok</p>") )
        .get("/test2", |_| Response::html_str("<p>test 2 ok</p>") );

    // Serve it to the world on 127.0.0.1:8080
    corruption.serve();
}

Todo

  • Requests
  • Middlewares
  • Use handlebars
  • Route parameters