Method: Rack::Request::Helpers#hostname

Defined in:
lib/rack/request.rb

#hostnameObject

Returns an address suitable for being to resolve to an address. In the case of a domain name or IPv4 address, the result is the same as host. In the case of IPv6 or future address formats, the square brackets are removed.


341
342
343
# File 'lib/rack/request.rb', line 341

def hostname
  split_authority(self.authority)[1]
end