sig/options.rbs in httpx-0.24.7 vs sig/options.rbs in httpx-1.0.0
- old
+ new
@@ -9,17 +9,15 @@
OPERATION_TIMEOUT: Integer
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 | :read_timeout | :write_timeout | :request_timeout
+ type timeout_type = :connect_timeout | :settings_timeout | :operation_timeout | :keep_alive_timeout | :read_timeout | :write_timeout | :request_timeout
type timeout = Hash[timeout_type, Numeric]
def self.new: (?options) -> instance
- def self.def_option: (Symbol, ?String) -> void
- | (Symbol) { (*nil) -> untyped } -> void
# headers
attr_reader uri: URI?
# headers
attr_reader headers: Headers?
@@ -46,16 +44,22 @@
attr_reader body_threshold_size: Integer
# transport
attr_reader transport: "unix" | nil
- # transport_options
- attr_reader transport_options: Hash[untyped, untyped]?
-
# addresses
attr_reader addresses: Array[ipaddr]?
+ # supported_compression_formats
+ attr_reader supported_compression_formats: Array[String]
+
+ # compress_request_body
+ attr_reader compress_request_body: bool
+
+ # decompress_response_body
+ attr_reader decompress_response_body: bool
+
# params
attr_reader params: Transcoder::urlencoded_input?
# form
attr_reader form: Transcoder::urlencoded_input?
@@ -122,12 +126,12 @@
private
REQUEST_IVARS: Array[Symbol]
- def initialize: (?options options) -> untyped
+ def initialize: (?options options) -> void
- def __initialize__: (?options options) -> untyped
+ def do_initialize: (?options options) -> void
end
type options = Options | Hash[Symbol, untyped]
end