Class: Ksef::HTTP::SystemWarning
- Inherits:
-
Faraday::Middleware
- Object
- Faraday::Middleware
- Ksef::HTTP::SystemWarning
- Defined in:
- lib/ksef/http/system_warning.rb
Overview
Surfaces the X-System-Warning header the API sets on every successful response
(docs/REFERENCE.md §5.5).
This is the Ministry's in-band channel for advisory notices — deprecations, forthcoming contract changes — and is not mentioned in DESIGN.md. Swallowing it would mean users only learn about a change when it breaks them.
Constant Summary collapse
- HEADER =
"X-System-Warning"
Instance Method Summary collapse
-
#initialize(app, logger: nil) ⇒ SystemWarning
constructor
A new instance of SystemWarning.
- #on_complete(env) ⇒ Object
Constructor Details
#initialize(app, logger: nil) ⇒ SystemWarning
Returns a new instance of SystemWarning.
16 17 18 19 |
# File 'lib/ksef/http/system_warning.rb', line 16 def initialize(app, logger: nil) super(app) @logger = logger end |