sig/connection/http1.rbs in httpx-0.16.1 vs sig/connection/http1.rbs in httpx-0.17.0

- old
+ new

@@ -1,10 +1,14 @@ module HTTPX class Connection::HTTP1 include Callbacks include Loggable + UPCASED: Hash[String, String] + MAX_REQUESTS: Integer + CRLF: String + attr_reader pending: Array[Request] attr_reader requests: Array[Request] @options: Options @max_concurrent_requests: Integer @@ -28,23 +32,25 @@ def consume: () -> void def handle_error: (StandardError ex) -> void + def on_start: () -> void + def on_headers: (Hash[String, Array[String]] headers) -> void def on_trailers: (Hash[String, Array[String]] headers) -> void - def on_data: (string chunk) -> void + def on_data: (String chunk) -> void def on_complete: () -> void def dispatch: () -> void def ping: () -> void - def timeout: () -> Integer + def timeout: () -> Numeric private def initialize: (Buffer, options) -> untyped @@ -52,20 +58,20 @@ def disable: () -> void def disable_pipelining: () -> void - def set_protocol_headers: (Request) -> _Each[[headers_key, String]] + def set_protocol_headers: (Request) -> _Each[[String, String]] def headline_uri: (Request) -> String def handle: (Request request) -> void def join_headers: (Request request) -> void def join_trailers: (Request request) -> void - def join_headers2: (_Each[[headers_key, String]] headers) -> void + def join_headers2: (_Each[[String, String]] headers) -> void def join_body: (Request request) -> void def capitalized: (String field) -> String end \ No newline at end of file