Path to this page:
./
www/ruby-http_router,
Kick-ass HTTP router for use in Rack
Branch: pkgsrc-2014Q3,
Version: 0.11.1,
Package name: ruby200-http_router-0.11.1,
Maintainer: pkgsrc-users# HTTP Router
## What is it?
This is an HTTP router for use in either a web framework, or on it's own using
Rack. It takes a set of routes and attempts to find the best match for
it. Take a look at the examples directory for how you'd use it in the Rack
context.
## Features
* Ordered route resolution.
* Supports variables, and globbing, both named and unnamed.
* Regex support for variables.
* Request condition support.
* Partial matches.
* Supports interstitial variables (e.g.
/my-:variable-brings.all.the.boys/yard) and unnamed variable /one/:/two
* Very fast and small code base (~1,000 loc).
* Sinatra via https://github.com/joshbuddy/http_router_sinatra
Required to run:[
lang/ruby200-base] [
www/ruby-rack]
Master sites:
SHA1: 6ab3687cc16c0546457e11edf5c8f9cc0474677b
RMD160: 4b50afb2124efb3d93c515518e155ef1b9f71045
Filesize: 153 KB
Version history: (Expand)
- (2014-10-01) Package added to pkgsrc.se, version ruby200-http_router-0.11.1 (created)