6 Commits

Author SHA1 Message Date
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
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
HoneyryderChuck
fa2fd818fe added explicit response closing in tests 2020-11-22 15:55:43 +00:00
HoneyryderChuck
c1c0c536eb Client -> Session (signal this as deprecation, as this is public API 2019-03-16 16:32:33 +00:00
HoneyryderChuck
4be12daa00 verify_status receives response and raises when not a proper response 2018-03-20 20:08:24 +00:00
HoneyryderChuck
e762faedfa added h2c plugin 2018-01-08 22:30:50 +00:00