Class: CheckoutSdk::Common::Headers
- Inherits:
-
Object
- Object
- CheckoutSdk::Common::Headers
- Defined in:
- lib/checkout_sdk/common/headers.rb
Overview
Optional HTTP headers that callers can pass to a client method, mirroring
the SDK's Headers pattern. Currently exposes If-Match (required
by endpoints with optimistic-concurrency semantics, e.g. update reserve
rule); future shared headers can be added here.
Instance Attribute Summary collapse
-
#accept ⇒ String
Value to forward as the
AcceptHTTP header, e.g. -
#if_match ⇒ String
ETag value to forward as the
If-MatchHTTP header.
Instance Attribute Details
#accept ⇒ String
Returns value to forward as the Accept HTTP header, e.g.
application/json;schema_version=3.0 for Accounts API schema negotiation.
15 16 17 |
# File 'lib/checkout_sdk/common/headers.rb', line 15 class Headers attr_accessor :if_match, :accept end |
#if_match ⇒ String
Returns ETag value to forward as the If-Match HTTP header.
15 16 17 |
# File 'lib/checkout_sdk/common/headers.rb', line 15 class Headers attr_accessor :if_match, :accept end |