Method: NewRelic::Agent::HTTPClients::AsyncHTTPRequest#host_from_header

Defined in:
lib/new_relic/agent/http_clients/async_http_wrappers.rb

#host_from_headerObject



39
40
41
42
43
# File 'lib/new_relic/agent/http_clients/async_http_wrappers.rb', line 39

def host_from_header
  if hostname = (self[LHOST] || self[UHOST])
    hostname.split(COLON).first
  end
end