class Request
Definitions
def call(connection)
Send the request to the given connection.
Implementation
def call(connection)
if connection.http1?
return UpgradeRequest.new(self, **@options).call(connection)
elsif connection.http2?
return ConnectRequest.new(self, **@options).call(connection)
end
raise UnsupportedVersionError, "Unsupported HTTP version: #{connection.version}!"
end