#router #iron-framework #framework

rust-easy-router

Simple router framework for Rust's Iron framework

2 releases

Uses old Rust 2015

0.1.1 Jun 18, 2018
0.1.0 Jun 18, 2018

#1233 in HTTP server

MIT license

7KB
124 lines

Rust Easy Router

Library to add "matched" routing to the Rust web framework Iron. This can be used to build REST APIs with relative ease, and high stability.

Example Code:

extern crate rust-easy-router;

use rust-easy-router::*;

fn test_handle(vars: HashMap<String, String>, body: &mut Body) -> IronResult<Response>
{
let mut string = "Vars:".to_owned();

for (x, y) in &vars {
string.push_str(&format!("\n{} -> {}", x, y));
}

string.push_str("\n");

/* Get Body 

Dependencies

~5MB
~126K SLoC