-
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
Improve documentation about HTTPClient and HTTP/2 #7141
Comments
In the HTTP client documentation, the 4th paragraph talks about the different transport: "Jetty’s HTTP client supports different transports: HTTP/1.1, FastCGI and HTTP/2." The words "different transports" are a link to the pluggable transport section, where you can find the snippet that you reported. Also, looking at the table of content on the left, it shows the "HttpClient Pluggable Transport" section. I'm open to suggestions to make this easier to find, but I can't think of anything simpler than clicking on a link. |
I was expecting something like: My goal is to use Jetty in a Spring WebClient. Some background information. Spring offers the class RestTemplate to do blocking calls to backend services. This RestTemplate is now in maintenance mode and will probably deprecated. The Spring WebClient replaces the RestTemplate. WebClient can be used with Jetty, Netty (default) or Apache. Spring recommends to use the same stack for the web server and for the HTTP Client because resources are shared. There are two options, use Netty for the web server and client or Jetty. Netty is based on Spring WebFlux, Jetty can be used in Spring MVC. I expect that most people will stick to Spring MVC because that is much simpler to use. Maybe it is an idea to describe, give examples, how the Jetty HttpCient can be configured with Spring WebClient. On the other hand I can also imagine that you don't want to mention other libraries on your page. |
This issue has been automatically marked as stale because it has been a |
This issue has been closed due to it having no activity. |
This issue has been automatically marked as stale because it has been a |
Closing, as there is a rework of the documentation for the new website, with searchable features, and new documentation that comes with the work of #8979. |
Target Jetty version(s)
10.0.7
Enhancement Description
The documentation describes the following:
The High-Level HTTP Client Library for HTTP/1.1, HTTP/2 and FastCGI
It looks like if the HTTPClient can do HTTP/2 calls but if I'm not mistaken the low level HTTP2Client is still required. The only example I could find is the following:
It took me a long time to figure this out.
The text was updated successfully, but these errors were encountered: