Flowdock
host() public

Returns the host for this request, such as example.com.

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

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