sig/options.rbs in httpx-0.16.1 vs sig/options.rbs in httpx-0.17.0

- old
+ new

@@ -9,11 +9,11 @@ KEEP_ALIVE_TIMEOUT: Integer SETTINGS_TIMEOUT: Integer DEFAULT_OPTIONS: Hash[Symbol, untyped] type timeout_type = :connect_timeout | :settings_timeout | :operation_timeout | :keep_alive_timeout | :total_timeout - type timeout = Hash[timeout_type, Numeric?] + type timeout = Hash[timeout_type, Numeric] def self.new: (?options) -> instance def self.def_option: (Symbol, ?String) -> void | (Symbol) { (*nil) -> untyped } -> void @@ -24,10 +24,13 @@ attr_reader headers: Headers? # timeout attr_reader timeout: timeout + # http2_settings + attr_reader http2_settings: Hash[Symbol, Integer | bool] + # max_concurrent_requests attr_reader max_concurrent_requests: Integer? # max_requests attr_reader max_requests: Integer? @@ -43,11 +46,11 @@ # transport_options attr_reader transport_options: Hash[untyped, untyped]? # addresses - attr_reader addresses: _ToAry[ipaddr]? + attr_reader addresses: Array[ipaddr]? # params attr_reader params: Transcoder::urlencoded_input? # form @@ -57,10 +60,13 @@ attr_reader json: _ToJson? # body attr_reader body: bodyIO? + # body + attr_reader origin: URI::Generic? + # ssl # http2_settings @@ -101,15 +107,17 @@ # resolver_options attr_reader resolver_options: Hash[Symbol, untyped]? def ==: (untyped other) -> bool - def merge: (_ToHash[Symbol | String, untyped] other) -> instance + def merge: (_ToHash[Symbol, untyped] other) -> instance def to_hash: () -> Hash[Symbol, untyped] private - def initialize: (?options) -> untyped + REQUEST_IVARS: Array[Symbol] + + def initialize: (?options options) -> untyped end - type options = Options | Hash[Symbol | String, untyped] + type options = Options | Hash[Symbol, untyped] end