class ZuoraConnect::RequestIdMiddleware
def call(env)
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
def initialize(app)
def initialize(app) @app = app end