This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
raw_host_with_port()
public
Returns the \host for
this request, such as "example.com".
# File actionpack/lib/action_controller/request.rb, line 276
def raw_host_with_port
if forwarded = env["HTTP_X_FORWARDED_HOST"]
forwarded.split(/,\s?/).last
else
env['HTTP_HOST'] || "#{env['SERVER_NAME'] || env['SERVER_ADDR']}:#{env['SERVER_PORT']}"
end
end