sig/options.rbs in httpx-0.12.0 vs sig/options.rbs in httpx-0.13.0
- old
+ new
@@ -9,66 +9,58 @@
| () -> instance
# headers
attr_reader headers: Headers?
def headers=: (headers) -> void
- def with_headers: (headers) -> instance
# timeout
attr_reader timeout: Timeout?
def timeout=: (Hash[Symbol, untyped] | Timeout) -> void
- def with_timeout: (Hash[Symbol, untyped] | Timeout) -> instance
# max_concurrent_requests
attr_reader max_concurrent_requests: Integer?
def max_concurrent_requests=: (Integer) -> void
- def with_max_concurrent_requests: (Integer) -> instance
# max_requests
attr_reader max_requests: Integer?
def max_requests=: (Integer) -> void
- def with_max_requests: (Integer) -> instance
# window_size
attr_reader window_size: int?
def window_size=: (int) -> void
- def with_window_size: (int) -> instance
# body_threshold_size
attr_reader body_threshold_size: int?
def body_threshold_size=: (int) -> void
- def with_body_threshold_size: (int) -> instance
# transport
attr_reader transport: _ToS?
def transport=: (_ToS) -> void
- def with_transport: (_ToS) -> instance
# transport_options
attr_reader transport_options: Hash[untyped, untyped]?
def transport_options=: (Hash[untyped, untyped]) -> void
- def with_transport_options: (Hash[untyped, untyped]) -> instance
+ # addresses
+ attr_reader addresses: _ToAry[untyped]?
+ def addresses=: (_ToAry[untyped]) -> void
+
# params
attr_reader params: Transcoder::urlencoded_input?
def params=: (Transcoder::urlencoded_input) -> void
- def with_params: (Transcoder::urlencoded_input) -> instance
# form
attr_reader form: Transcoder::urlencoded_input?
def form=: (Transcoder::urlencoded_input) -> void
- def with_form: (Transcoder::urlencoded_input) -> instance
# json
attr_reader json: _ToJson?
def json=: (_ToJson) -> void
- def with_json: (_ToJson) -> instance
# body
attr_reader body: bodyIO?
def body=: (bodyIO) -> void
- def with_body: (bodyIO) -> instance
# ssl
# http2_settings
@@ -77,35 +69,30 @@
# resolver_class resolver_options
# request_class
attr_reader request_class: singleton(Request)
def request_class=: (singleton(Request)) -> void
- def with_request_class: (singleton(Request)) -> instance
# io
- attr_reader io: _ToIO?
- def io=: (_ToIO) -> void
- def with_io: (_ToIO) -> instance
+ type io_option = _ToIO | Hash[String, _ToIO]
+ attr_reader io: io_option?
+ def io=: (io_option) -> void
# fallback_protocol
attr_reader fallback_protocol: String?
def fallback_protocol=: (String) -> void
- def with_fallback_protocol: (String) -> instance
# debug
attr_reader debug: _IOLogger?
def debug=: (_IOLogger) -> void
- def with_debug: (_IOLogger) -> instance
# debug_level
attr_reader debug_level: Integer?
def debug_level=: (Integer) -> void
- def with_debug_level: (Integer) -> instance
# persistent
attr_reader persistent: bool?
def persistent=: (bool) -> void
- def with_persistent: (bool) -> instance
def ==: (untyped other) -> bool
def merge: (_ToHash other) -> instance
private