httpx/sig/plugins/h2c.rbs
HoneyryderChuck a77091f9e7 refactor the h2c plugin on top of the upgrade plugin
By setting the h2c protocol handler, the rest became much simpler.

Formatting the upgrade request is a matter for the sub-plugin.
Therefore, the specific h2c request upgrade headers are built-in there.
2021-02-28 03:06:03 +00:00

22 lines
533 B
Plaintext

module HTTPX
module Plugins
module H2C
VALID_H2C_VERBS: Array[Symbol]
def self.load_dependencies: (singleton(Session)) -> void
def self.configure: (*untyped) -> void
def self.call: (Connection, Request, response) -> void
class H2CParser < Connection::HTTP2
def upgrade: (Request, Response) -> void
end
module ConnectionMethods
def upgrade_to_h2c: (Request, Response) -> void
end
end
type sessionH2C = Session & Plugins::H2C::InstanceMethods
end
end