Class: RunApi::Core::RequestOptions
- Inherits:
-
Struct
- Object
- Struct
- RunApi::Core::RequestOptions
- Defined in:
- lib/runapi/core/types.rb
Overview
Per-request options that override client-level defaults.
Instance Attribute Summary collapse
-
#headers ⇒ Hash<String, String>?
Additional HTTP headers.
-
#max_retries ⇒ Integer?
Maximum retry attempts.
-
#timeout ⇒ Integer?
Request timeout in seconds.
Instance Attribute Details
#headers ⇒ Hash<String, String>?
Returns Additional HTTP headers. Merged with client-level headers.
75 76 77 78 79 80 |
# File 'lib/runapi/core/types.rb', line 75 RequestOptions = Struct.new( :headers, :timeout, :max_retries, keyword_init: true ) |
#max_retries ⇒ Integer?
Returns Maximum retry attempts. Overrides client-level max_retries.
75 76 77 78 79 80 |
# File 'lib/runapi/core/types.rb', line 75 RequestOptions = Struct.new( :headers, :timeout, :max_retries, keyword_init: true ) |
#timeout ⇒ Integer?
Returns Request timeout in seconds. Overrides client-level timeout.
75 76 77 78 79 80 |
# File 'lib/runapi/core/types.rb', line 75 RequestOptions = Struct.new( :headers, :timeout, :max_retries, keyword_init: true ) |