-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting :authority with HTTP2 transport #11923
Labels
Comments
The Jetty 12 version of the same testcase is ... Lines 724 to 764 in 619c539
What's the key piece of information is ... // Setup the destination to physically connect to.
Origin origin = new Origin(scheme, destHost, destPort);
Destination destination = client.resolveDestination(origin);
// What the HTTP request should contain for Authority
var request = client.newRequest(requestHost, requestPort)
.scheme(requestScheme)
.path("/path");
// Initiate the request to the specified destination.
destination.send(request, result -> {
// process the results
}); |
Great, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jetty Version
12
Jetty Environment
core
Java Version
17
Question
In #5633 a support for setting
:authority
header with HttpClient was introduced. The original issue mentions a fluent builder liker API (authority()) for a Request but the linked PR is using sth calledHTTPDestination
.Could you point me to a piece of docs or guide me how to properly use the API? Say I am sending an HTTP2 request to an Envoy proxy running on localhost:5000 and want to include
:authority
header set to:foo.bar.baz
The text was updated successfully, but these errors were encountered: