Sha256: 8a62211733a1cfc70dd33a659ed0ec8268bf6b01962b5c92ac883805a86f5ccf

Contents?: true

Size: 340 Bytes

Versions: 62

Compression:

Stored size: 340 Bytes

Contents

module ZuoraConnect
  class RequestIdMiddleware
    mattr_accessor :request_id
    mattr_accessor :zuora_request_id

    def initialize(app)
      @app = app
    end

    def call(env)
      self.request_id = env['action_dispatch.request_id']
      self.zuora_request_id = env["HTTP_ZUORA_REQUEST_ID"]
      @app.call(env)
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
zuora_connect-1.7.84b lib/middleware/request_id_middleware.rb
zuora_connect-1.7.83 lib/middleware/request_id_middleware.rb