kubernetes-client
kubernetes-client copied to clipboard
MockWebServer HTTP/2 full support
Description
Currently MockWebServer has partial support for HTTP/2 but provides incomplete handshakes. This seems to work for OkHttp, but not for other client implementations.
Provide an MockWebServer alternative with better support for HTTP/2
- Implement a proper handshake response
-
onStream(Http2Stream stream)
-
readRequest(Http2Stream stream)
-
- Remove hardcoded HTTP/1.1 protocol in the RecordedRequest
MockWebServer is final, however, maybe intercepting PRI
method requests can help us deal with the problem.
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!