-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support proxy for plaintext HTTP/2 clients with prior-knowledge (#2716)
Motivation: Plaintext proxies operate as forwarding message proxies. They expect clients to send requests with absolute-form request-target to determine where to forward the message. This logic does not depend on the protocol version, it already works for HTTP/1.1 and should work for HTTP/2 the same way. Modifications: - `DefaultSingleAddressHttpClientBuilder`: remove check that does not allow users to use HTTP/2 prior-knowledge with a proxy over plaintext connections; - Enhance `HttpProxyTest` to validate behavior consistency for both protocols; Result: Users can use plaintext HTTP/2 prior-knowledge clients to communicate via a forwarding message proxy.
- Loading branch information
1 parent
61b65b8
commit 6d38417
Showing
2 changed files
with
72 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters