Sha256: 685600df7f948e8f879bf439630e6ce5df59d53d18ebd3c7cb2f7187a9c454e7

Contents?: true

Size: 471 Bytes

Versions: 142

Compression:

Stored size: 471 Bytes

Contents

module ZuoraConnect
  class RequestIdMiddleware
    mattr_accessor :request_id
    mattr_accessor :zuora_request_id
    mattr_accessor :zuora_rest_domain
    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"]
      env['CONTENT_TYPE'] = 'application/json' if env['HTTP_X_AMZ_SNS_MESSAGE_TYPE'].present?
      @app.call(env)
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
zuora_connect-3.0.0.pre.c lib/middleware/request_id_middleware.rb
zuora_connect-3.0.0.pre.b lib/middleware/request_id_middleware.rb
zuora_connect-3.0.0.pre.a lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60v lib/middleware/request_id_middleware.rb
zuora_connect-2.1.1 lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60u lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60t lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60s lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60r lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60q lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60p lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60o lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60n lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60m lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60l lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60k lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60j lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60i lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60h lib/middleware/request_id_middleware.rb
zuora_connect-2.0.60g lib/middleware/request_id_middleware.rb