class ElasticAPM::Transport::Connection::Http

def build_client

def build_client
  client = HTTP.headers(@headers)
  return client unless @config.proxy_address && @config.proxy_port
  client.via(
    @config.proxy_address,
    @config.proxy_port,
    @config.proxy_username,
    @config.proxy_password,
    @config.proxy_headers
  )
end