Sha256: 8a2d54c9019497f1e1abaa2418de35ab5ce87e77bf7c892aadd8f39313b67624
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
require_relative 'base' require_relative '../trace' module RequestTracer module Integration module RestClientHandler include Base extend self def activate require 'rest-client' RestClient.add_before_execution_proc do |req, params| extract_headers_from_fields(Trace.latest).each {|h, v| req[h] = v} end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
request-tracer-0.5.4 | lib/request_tracer/integration/rest_client_handler.rb |