Module Rack::Mount
In: lib/rack/mount.rb
lib/rack/mount/regexp_with_named_groups.rb
lib/rack/mount/code_generation.rb
lib/rack/mount/prefix.rb
lib/rack/mount/version.rb
lib/rack/mount/route_set.rb
lib/rack/mount/strexp.rb
lib/rack/mount/generatable_regexp.rb
lib/rack/mount/analysis/histogram.rb
lib/rack/mount/analysis/splitting.rb
lib/rack/mount/route.rb
lib/rack/mount/multimap.rb
lib/rack/mount/strexp/parser.rb
lib/rack/mount/utils.rb

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.

Classes and Modules

Module Rack::Mount::Utils
Class Rack::Mount::RegexpWithNamedGroups
Class Rack::Mount::Route
Class Rack::Mount::RouteSet
Class Rack::Mount::RoutingError
Class Rack::Mount::Strexp
Class Rack::Mount::StrexpParser

Constants

RegexpWithNamedGroups = Regexp
Version = '0.8.3'

[Validate]