Skip to content

Http client jetty

Module http_client_jetty

http_client implementation using the Jetty HTTP Client library.

️⚠️ Warning

WebSockets are not supported on GraalVM native images at the moment.

Install the Dependency

1
implementation("com.hexagontk.http:http_client_jetty:$hexagonVersion")
1
2
3
4
5
<dependency>
  <groupId>com.hexagontk.http</groupId>
  <artifactId>http_client_jetty</artifactId>
  <version>$hexagonVersion</version>
</dependency>

For WebSockets support, import also:

1
implementation("org.eclipse.jetty.websocket:jetty-websocket-jetty-client:$jettyVersion")
1
2
3
4
5
<dependency>
  <groupId>org.eclipse.jetty.websocket</groupId>
  <artifactId>jetty-websocket-jetty-client</artifactId>
  <version>$jettyVersion</version>
</dependency>

Package com.hexagontk.http.client.jetty

Jetty HTTP client implementation classes.

Package com.hexagontk.http.client.jetty.ws

Jetty HTTP client implementation classes (with WebSockets support).