mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-12-15 00:01:02 -05:00
The reference for a request verb is now the string which is used everywhere else, instead of the symbol corresponding to it. This was an artifact from the import from httprb, and there is no advantage in it, since these strings are frozen in most use cases, and the transformations from symbol to strings being performed everywhere are prooof that keeping the atom isn't really bringing any benefit.
20 lines
468 B
Plaintext
20 lines
468 B
Plaintext
module HTTPX
|
|
module Plugins
|
|
module H2C
|
|
VALID_H2C_VERBS: Array[verb]
|
|
|
|
def self.load_dependencies: (*untyped) -> void
|
|
def self.configure: (singleton(Session)) -> 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
|
|
end
|
|
end
|