Sha256: 49a390f834e5dc4e069519684e08761456d6c8550ea6ccfd1436f05d5e30bb14
Contents?: true
Size: 367 Bytes
Versions: 14
Compression:
Stored size: 367 Bytes
Contents
require 'uuid' require 'sitehub/constants' class SiteHub module Middleware class TransactionId include Constants def initialize(app) @app = app end def call(env) request = env[REQUEST] request.headers[HttpHeaderKeys::TRANSACTION_ID] ||= UUID.generate(:compact) @app.call env end end end end
Version data entries
14 entries across 14 versions & 1 rubygems