Rack::URLMap
# File lib/http_router/rack/url_map.rb, line 6 def initialize(map = {}) @router = HttpRouter.new map.each { |path, app| (path =~ /^(https?):\/\/(.*?)(\/.*)/ ? @router.add($3).host($2).scheme($1) : @router.add(path)).partial.to(app) } end
# File lib/http_router/rack/url_map.rb, line 11 def call(env) @router.call(env) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.