class OneApm::Support::HTTPClients::CurbResponse

Public Class Methods

new(curlobj) click to toggle source
# File lib/one_apm/support/http_clients/curb_wrappers.rb, line 60
def initialize(curlobj)
  @headers = {}
  @curlobj = curlobj
end

Public Instance Methods

[](key) click to toggle source
# File lib/one_apm/support/http_clients/curb_wrappers.rb, line 65
def [](key)
  @headers[ key.downcase ]
end
append_header_data( data ) click to toggle source
# File lib/one_apm/support/http_clients/curb_wrappers.rb, line 73
def append_header_data( data )
  key, value = data.split( /:\s*/, 2 )
  @headers[ key.downcase ] = value
  @curlobj._oa_header_str ||= ''
  @curlobj._oa_header_str << data
end
to_hash() click to toggle source
# File lib/one_apm/support/http_clients/curb_wrappers.rb, line 69
def to_hash
  @headers.dup
end