Router - Full-Featured, Low-Latency Rack Mapper

Easily turn any Class into a Rack Application

Really useful at building High-Load APIs and Web Frameworks

Build Status

Quick Start

Ready

$ [sudo] gem install router

Set

$ nano config.ru
require 'router'

class App < Router

  def index
    # ...
  end
end

run App

Go!

$ rackup

Tutorial

Routing

Base URL | Canonicals | Actions | Actions Mapping | Parametrization | Format | RESTful Actions | Aliases | Rewriter

Setup

Global Setup | Setup by Name | Setup by Format | Remote Setup | Locking App

Workflow

Params | Route | Halt | Redirect | Reload | Error Handlers | Content Type | Charset | Cache Control | Expires | Last Modified | Accepted Content Type | Headers