Module: Rack::Mount

Defined in:
lib/rack/mount.rb,
lib/rack/mount/route.rb,
lib/rack/mount/utils.rb,
lib/rack/mount/prefix.rb,
lib/rack/mount/strexp.rb,
lib/rack/mount/version.rb,
lib/rack/mount/multimap.rb,
lib/rack/mount/route_set.rb,
lib/rack/mount/strexp/parser.rb,
lib/rack/mount/code_generation.rb,
lib/rack/mount/analysis/histogram.rb,
lib/rack/mount/analysis/splitting.rb,
lib/rack/mount/generatable_regexp.rb,
lib/rack/mount/regexp_with_named_groups.rb

Overview

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.

Defined Under Namespace

Modules: Analysis, CodeGeneration, Utils Classes: GeneratableRegexp, Multimap, Prefix, RegexpWithNamedGroups, Route, RouteSet, RoutingError, Strexp, StrexpParser

Constant Summary collapse

Version =
'0.8.3'