Class Curl::Easy
In: lib/new_relic/agent/instrumentation/curb.rb
Parent: Object

Methods

External Aliases

http_head -> http_head_without_newrelic
http_post -> http_post_without_newrelic
http_put -> http_put_without_newrelic
http -> http_without_newrelic
perform -> perform_without_newrelic
header_str -> header_str_without_newrelic

Attributes

_nr_header_str  [RW] 
_nr_http_verb  [RW] 
_nr_instrumented  [RW] 
_nr_original_on_complete  [RW] 
_nr_original_on_header  [RW] 
_nr_serial  [RW] 

Public Instance methods

header_str()

We override this method in order to ensure access to header_str even though we use an on_header callback

http( verb )

Alias for http_with_newrelic

http_head(*args, &blk)

We have to hook these three methods separately, as they don‘t use Curl::Easy#http

http_post(*args, &blk)
http_put(*args, &blk)

Hook the http method to set the verb.

perform()

Hook the perform method to mark the request as non-parallel.

[Validate]