Rusty Pipe
Routing handler for the Iron web framework.
Rusty Pipe is a fast, convenient, and flexible routing middleware for Iron. It allows complex glob patterns and named url parameters and also allows handlers to be any Handler, including all Chains.
Originally sourced from Iron Router, Rusty Pipe adds additional metadata that can be accessed on each request to enable more advanced middlware based on the context of each route.
Example
extern crate iron;
extern crate router;
use *;
use status;
use Router;
Installation
If you're using cargo, just add router to your Cargo.toml
.
[]
= "*"
Otherwise, cargo build
, and the rlib will be in your target
directory.