sig/plugins/upgrade.rbs in httpx-0.22.5 vs sig/plugins/upgrade.rbs in httpx-0.23.0

- old
+ new

@@ -1,19 +1,21 @@ module HTTPX module Plugins module Upgrade - type handlers_registry = Registry[Symbol, Class] + interface _Upgrader + def call: (Connection connection, Request request, Response response) -> void + end def self.configure: (singleton(Session)) -> void interface _UpgradeOptions - def upgrade_handlers: () -> handlers_registry? + def upgrade_handlers: () -> Hash[String, _Upgrader] end def self.extra_options: (Options) -> (Options & _UpgradeOptions) module ConnectionMethods - attr_reader upgrade_protocol: Symbol? + attr_reader upgrade_protocol: String? attr_reader hijacked: boolish def hijack_io: () -> void end end