Class: UkrsibAPI::RequestIDMiddleware
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- UkrsibAPI::RequestIDMiddleware
- Defined in:
- lib/ukrsib_api/request_id_middleware.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
3 4 5 6 |
# File 'lib/ukrsib_api/request_id_middleware.rb', line 3 def call(env) env.request_headers["X-Request-ID"] = SecureRandom.uuid @app.call(env) end |