CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 23 Aug 2025 06:20:43 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090918065528
location: https://web.archive.org/web/20090918065528/https://github.com/josh/rack-mount
server-timing: captures_list;dur=0.527893, exclusion.robots;dur=0.025189, exclusion.robots.policy;dur=0.015179, esindex;dur=0.009867, cdx.remote;dur=14.883523, LoadShardBlock;dur=217.683327, PetaboxLoader3.datanode;dur=76.724734, PetaboxLoader3.resolve;dur=84.106348
x-app-server: wwwb-app202
x-ts: 302
x-tr: 276
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app202; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 23 Aug 2025 06:20:43 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.35
x-archive-orig-date: Fri, 18 Sep 2009 06:55:28 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "e31f26a4dcccf658f58f63a4d536bbfa"
x-archive-orig-x-runtime: 314ms
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 23377
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 18 Sep 2009 06:55:28 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 05 Jul 2009 06:02:48 GMT", ; rel="prev memento"; datetime="Mon, 03 Aug 2009 03:05:54 GMT", ; rel="memento"; datetime="Fri, 18 Sep 2009 06:55:28 GMT", ; rel="next memento"; datetime="Thu, 05 Nov 2009 06:11:52 GMT", ; rel="last memento"; datetime="Fri, 27 Jun 2025 06:01:09 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_11_20090917195225_crawl103_IndexOnly.gpg-c/51_11_20090918065217_crawl101.arc.gz
server-timing: captures_list;dur=0.608834, exclusion.robots;dur=0.029017, exclusion.robots.policy;dur=0.016395, esindex;dur=0.010235, cdx.remote;dur=9.548378, LoadShardBlock;dur=252.891420, PetaboxLoader3.datanode;dur=215.782381, PetaboxLoader3.resolve;dur=148.392532, load_resource;dur=162.581480
x-app-server: wwwb-app202
x-ts: 200
x-tr: 500
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
josh's rack-mount at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Run the following if you haven't already:
gem sources -a https://gems.github.com
Install the gem(s):
sudo gem install josh-rack-mount
Description: | Stackable dynamic tree based Rack router edit |
Homepage: | https://josh.github.com/rack-mount edit |
Public Clone URL: |
git://github.com/josh/rack-mount.git
Give this clone URL to anyone.
git clone git://github.com/josh/rack-mount.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:josh/rack-mount.git
|

Joshua Peek (author)
Thu Sep 17 07:47:00 -0700 2009
name | age | message | |
---|---|---|---|
![]() |
.gitignore | Loading commit data... ![]() |
|
![]() |
MIT-LICENSE | ||
![]() |
README.rdoc | ||
![]() |
Rakefile | ||
![]() |
deps.rip | ||
![]() |
lib/ | ||
![]() |
rack-mount.gemspec | ||
![]() |
rails/ | ||
![]() |
test/ |
README.rdoc
Rack::Mount
A stackable dynamic tree based Rack router.
Rack::Mount supports Rack’s Cascade style of trying several routes until it finds one that is not a 404. This allows multiple routes to be nested or stacked on top of each other. Since the application endpoint can trigger the router to continue matching, middleware can be used to add arbitrary conditions to any route. This allows you to route based on other request attributes, session information, or even data dynamically pulled from a database.
Usage
Rack::Mount provides a plugin API to build custom DSLs on top of.
The API is extremely minimal and only 3 methods are exposed as the public API.
Rack::Mount::RouteSet#add_route: | builder method for adding routes to the set |
Rack::Mount::RouteSet#call: | Rack compatible recognition and dispatching method |
Rack::Mount::RouteSet#url: | generates path from identifiers or significant keys |
Example
require 'rack/mount' Routes = Rack::Mount::RouteSet.new do |set| # add_route takes a rack application and conditions to match with # conditions may be strings or regexps # See Rack::Mount::RouteSet#add_route for more options. set.add_route FooApp, :method => 'get' :path => %{/foo} end # The route set itself is a simple rack app you mount run Routes
This feature is coming soon. Sit tight!