class Webmachine::Adapters::Rack3Mapped
Protected Instance Methods
Source
# File lib/webmachine/adapters/rack3_adapter.rb, line 168 def base_uri(rack_req) # rack SCRIPT_NAME env var doesn't end with "/". This causes weird # behavour when URI.join concatenates URI components in # Webmachine::Decision::Flow#n11 script_name = rack_req.script_name + SLASH URI.join(rack_req.base_url, script_name) end
Source
# File lib/webmachine/adapters/rack3_adapter.rb, line 162 def routing_tokens(rack_req) routing_match = rack_req.path_info.match(Webmachine::Request::ROUTING_PATH_MATCH) routing_path = routing_match ? routing_match[1] : "" routing_path.split(SLASH) end