url() public

Returns the complete URL used for this request.

class Request < Rack::Request
  include ActionDispatch::Http::URL
end

req = Request.new 'HTTP_HOST' => 'example.com'
req.url # => "http://example.com"
Show source
Register or log in to add new notes.