class HTTPClient

Public Instance Methods

do_get_block(req, proxy, conn, &block)
Also aliased as: do_get_block_without_oneapm
do_get_block_with_oneapm(req, proxy, conn, &block) click to toggle source
# File lib/one_apm/inst/http_clients/httpclient.rb, line 27
def do_get_block_with_oneapm(req, proxy, conn, &block)
  wrapped_request = OneApm::Support::HTTPClients::HTTPClientRequest.new(req)

  response = nil
  ::OneApm::Agent::CrossAppTracing.tl_trace_http_request(wrapped_request) do
    do_get_block_without_oneapm(req, proxy, conn, &block)
    response = conn.pop
    conn.push response
    ::OneApm::Support::HTTPClients::HTTPClientResponse.new(response)
  end
  response
end
Also aliased as: do_get_block
do_get_block_without_oneapm(req, proxy, conn, &block)
Alias for: do_get_block