H2c Upgrade

The h2c Upgrade allow a client to “upgrade” an existing HTTP/1 connection for a single request at a time into a full HTTP/2 connection, using the “Upgrade” header and the RFC-specified handshake.

We do not recommend using cleartext to do anything nowadays, but if you don’t have a choice and the server supports the handshake, it can dramatically increase the performance of multiple resource fetching.

http = HTTPX.plugin(:h2c)
http.get("http://nghttp2.org/news", "http://nghttp2.org/")

Next: Multipart uploads