sig/options.rbs in httpx-0.13.2 vs sig/options.rbs in httpx-0.14.0
- old
+ new
@@ -3,19 +3,26 @@
# include _ToHash
WINDOW_SIZE: Integer
MAX_BODY_THRESHOLD_SIZE: Integer
+ type timeout_type = :connect_timeout | :operation_timeout | :keep_alive_timeout | :total_timeout
+ type timeout = Hash[timeout_type, Numeric?]
+
def self.new: (options) -> instance
| () -> instance
# headers
+ attr_reader uri: URI?
+ def uri=: (uri) -> void
+
+ # headers
attr_reader headers: Headers?
def headers=: (headers) -> void
# timeout
- attr_reader timeout: Timeout?
- def timeout=: (Hash[Symbol, untyped] | Timeout) -> void
+ attr_reader timeout: timeout
+ def timeout=: (timeout) -> void
# max_concurrent_requests
attr_reader max_concurrent_requests: Integer?
def max_concurrent_requests=: (Integer) -> void