This PR enables the use of HTTP2/Cleartext (h2c) in the GCP conformance server, and adds an flag to optionally force HTTP/2 usage in the hammer.
HTTP/2 supports much better multiplexing of requests over a socket connection compared to HTTP/1.1, which in turn results in better performance and fewer errors when sending a large number of concurrent requests (e.g. when running the hammer against a conformance server).
This PR enables the use of HTTP2/Cleartext (h2c) in the GCP conformance server, and adds an flag to optionally force HTTP/2 usage in the hammer.
HTTP/2 supports much better multiplexing of requests over a socket connection compared to HTTP/1.1, which in turn results in better performance and fewer errors when sending a large number of concurrent requests (e.g. when running the hammer against a conformance server).
CloudRun detects and supports h2c if implemented by the server its hosting, otherwise it will downgrade incoming HTTP/2 requests to HTTP/1.