sig/connection.rbs in httpx-1.0.2 vs sig/connection.rbs in httpx-1.1.0
- old
+ new
@@ -38,10 +38,11 @@
@current_timeout: Numeric?
@io: TCP | SSL | UNIX
@parser: HTTP1 | HTTP2 | _Parser
@connected_at: Float
@response_received_at: Float
+ @intervals: Array[Timers::Interval]
def addresses: () -> Array[ipaddr]?
def addresses=: (Array[ipaddr]) -> void
@@ -87,11 +88,11 @@
def deactivate: () -> void
def open?: () -> bool
- def raise_timeout_error: (Numeric interval) -> void
+ def handle_socket_timeout: (Numeric interval) -> void
private
def initialize: (io_type, URI::Generic, options) -> untyped
@@ -126,9 +127,11 @@
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
+
+ def set_request_timeout: (Request request, Numeric timeout, Symbol start_event, Symbol | Array[Symbol] finish_events) { () -> void } -> void
def self.parser_type: (String protocol) -> (singleton(HTTP1) | singleton(HTTP2))
end
end
\ No newline at end of file