Registry / web-framework / http-router

http-router

JSON →
library0.11.2rbrubygemsunverified

A library to recognize and build URLs in a Rack application.

gem install http_router
INSTALL
IMPORT
SIG · HTTP-ROUTER
H
http-router
web-frameworkrubyv0.11.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpRouter
require 'http_router'

Define a route with a parameter

require 'http_router' router = HttpRouter.new router.get('/hello/:name').to { |env| [200, {}, ["Hello #{env['router.params'][:name]}"]] }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
http-router — gem install http-router · libregistry