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.2.11 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.10 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.9 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.8 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.7 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.6 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.5 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.4 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.3 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.2 lib/middleware/request_id_middleware.rb
zuora_connect-3.2.0 lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5.pre.g lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5.pre.f lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5.pre.e lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5.pre.d lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5.pre.c lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5.pre.b lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5.pre.a lib/middleware/request_id_middleware.rb
zuora_connect-3.1.5 lib/middleware/request_id_middleware.rb
zuora_connect-3.1.4 lib/middleware/request_id_middleware.rb