sig/connection.rbs in httpx-0.20.5 vs sig/connection.rbs in httpx-0.21.0

- old
+ new

@@ -26,11 +26,11 @@ attr_reader state: Symbol attr_reader pending: Array[Request] attr_reader options: Options attr_writer timers: Timers - @origins: Array[URI::Generic] + @type: io_type @window_size: Integer @read_buffer: Buffer @write_buffer: Buffer @inflight: Integer @keep_alive_timeout: Numeric? @@ -38,11 +38,11 @@ def addresses: () -> Array[ipaddr]? def addresses=: (Array[ipaddr]) -> void - def match?: (URI::Generic, options) -> bool + def match?: (URI::Generic uri, Options options) -> bool def mergeable?: (Connection) -> bool def coalescable?: (Connection) -> bool @@ -52,17 +52,19 @@ def purge_pending: () { (Request) -> void } -> void def match_altsvcs?: (URI::Generic uri) -> bool + def match_altsvc_options?: (URI::Generic uri, Options options) -> bool + def connecting?: () -> bool def inflight?: () -> boolish def interests: () -> io_interests? - def to_io: () -> IO + def to_io: () -> ::IO def call: () -> void def close: () -> void def reset: () -> void @@ -75,11 +77,11 @@ def raise_timeout_error: (Numeric interval) -> void private - def initialize: (String, URI::Generic, options) -> untyped + def initialize: (io_type, URI::Generic, options) -> untyped def connect: () -> void def exhausted?: () -> boolish @@ -101,7 +103,13 @@ def on_error: (HTTPX::TimeoutError | Error | StandardError) -> void def handle_error: (StandardError) -> void def purge_after_closed: () -> void + + def set_request_timeouts: (Request request) -> void + + def write_timeout_callback: (Request request, Numeric write_timeout) -> void + + def read_timeout_callback: (Request request, Numeric read_timeout, ?singleton(RequestTimeoutError) error_type) -> void end end \ No newline at end of file