sig/connection.rbs in httpx-1.1.5 vs sig/connection.rbs in httpx-1.2.0

- old
+ new

@@ -42,46 +42,44 @@ @response_received_at: Float @intervals: Array[Timers::Interval] def addresses: () -> Array[ipaddr]? - def addresses=: (Array[ipaddr]) -> void + def addresses=: (Array[ipaddr] addresses) -> void + def send: (Request request) -> void + def match?: (URI::Generic uri, Options options) -> bool def expired?: () -> boolish - def mergeable?: (Connection) -> bool + def mergeable?: (Connection connection) -> bool - def coalescable?: (Connection) -> bool + def coalescable?: (Connection connection) -> bool def create_idle: (?Hash[Symbol, untyped] options) -> Connection - def merge: (Connection) -> void + def merge: (Connection connection) -> void - def purge_pending: () { (Request) -> void } -> void + def purge_pending: () { (Request 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 call: () -> void + def terminate: () -> void + def close: () -> void def reset: () -> void - def send: (Request) -> void - def timeout: () -> Numeric? def idling: () -> void def used?: () -> boolish @@ -92,12 +90,14 @@ def handle_socket_timeout: (Numeric interval) -> void private - def initialize: (io_type, URI::Generic, options) -> untyped + def initialize: (URI::Generic uri, options) -> void + def initialize_type: (URI::Generic uri, options) -> io_type + def connect: () -> void def exhausted?: () -> boolish def consume: () -> void @@ -110,18 +110,18 @@ def build_parser: (?String protocol) -> (HTTP1 | HTTP2) def set_parser_callbacks: (HTTP1 | HTTP2 parser) -> void - def transition: (Symbol) -> void + def transition: (Symbol nextstate) -> void - def handle_transition: (Symbol) -> void + def handle_transition: (Symbol nextstate) -> void def build_socket: (?Array[ipaddr]? addrs) -> (TCP | SSL | UNIX) - def on_error: (HTTPX::TimeoutError | Error | StandardError) -> void + def on_error: (HTTPX::TimeoutError | Error | StandardError error) -> void - def handle_error: (StandardError) -> void + def handle_error: (StandardError error) -> void def purge_after_closed: () -> void def set_request_timeouts: (Request request) -> void \ No newline at end of file