Parent

Methods

Class/Module Index [+]

Quicksearch

Excon::StandardInstrumentor

Public Class Methods

instrument(name, params = {}, &block) click to toggle source
# File lib/excon/standard_instrumentor.rb, line 3
def self.instrument(name, params = {}, &block)
  if params.has_key?(:headers) && params[:headers].has_key?('Authorization')
    params = params.dup
    params[:headers] = params[:headers].dup
    params[:headers]['Authorization'] = REDACTED
  end
  $stderr.puts("#{name}  #{params}")
  if block_given?
    yield
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.