sig/connection.rbs in httpx-1.2.4 vs sig/connection.rbs in httpx-1.2.6

- old
+ new

@@ -18,15 +18,16 @@ include Loggable include Callbacks attr_reader type: io_type - attr_reader origin: URI::Generic + attr_reader origin: http_uri attr_reader origins: Array[String] attr_reader state: Symbol attr_reader pending: Array[Request] attr_reader options: Options + attr_reader ssl_session: OpenSSL::SSL::Session? attr_writer timers: Timers attr_accessor family: Integer? @window_size: Integer @@ -35,11 +36,11 @@ @inflight: Integer @keep_alive_timeout: Numeric? @timeout: Numeric? @current_timeout: Numeric? @io: TCP | SSL | UNIX - @parser: HTTP1 | HTTP2 | _Parser + @parser: Object & _Parser @connected_at: Float @response_received_at: Float @intervals: Array[Timers::Interval] def addresses: () -> Array[ipaddr]? @@ -90,26 +91,26 @@ def handle_socket_timeout: (Numeric interval) -> void private - def initialize: (URI::Generic uri, options) -> void + def initialize: (http_uri uri, options) -> void - def initialize_type: (URI::Generic uri, options) -> io_type + def initialize_type: (http_uri uri, Options) -> io_type def connect: () -> void def exhausted?: () -> boolish def consume: () -> void def send_pending: () -> void - def parser: () -> (HTTP1 | HTTP2 | _Parser) + def parser: () -> (Object & _Parser) def send_request_to_parser: (Request request) -> void - def build_parser: (?String protocol) -> (HTTP1 | HTTP2) + def build_parser: (?String protocol) -> (Object & _Parser) def set_parser_callbacks: (HTTP1 | HTTP2 parser) -> void def transition: (Symbol nextstate) -> void \ No newline at end of file