httpx/sig/plugins/upgrade.rbs
HoneyryderChuck 72a397b841 added (and fixing bug for) test of subsequent request on upgraded
connection

After the connection has been upgraded and session is kept open,
subsequent requests were still trying to upgrade it. This fixes it by
marking the connection as upgraded, and falling back to normal
behaviour when it is.
2021-03-05 12:23:07 +00:00

13 lines
233 B
Plaintext

module HTTPX
module Plugins
module Upgrade
module ConnectionMethods
attr_reader upgrade_protocol: Symbol?
attr_reader hijacked: boolish
def hijack_io: () -> void
end
end
end
end