Awesome Open Source
Awesome Open Source

ESA HttpClient

Build codecov Maven Central GitHub license

ESA HttpClient is an asynchronous event-driven http client based on netty.

Features

  • Http1/H2/H2cUpgrade
  • Https
  • Epoll/NIO
  • Interceptor
  • Filter
  • Retry, Redirect, 100-expect-continue
  • Segmented read/write
  • Multipart
  • Metrics
  • more features...

Maven Dependency

Notenetty 4.1.52.Final and tcnative 2.0.34.Final are directly dependent on.

Note: Please make sure the version of tcnative matches the version of netty.

<dependency>
    <groupId>io.esastack</groupId>
    <artifactId>httpclient-core</artifactId>
    <version>${mvn.version}</version>
</dependency>

Quick Start

final HttpClient client = HttpClient.ofDefault();

final HttpResponse response = client.get("http://127.0.0.1:8081/").execute().get();
logger.info(response.body().string(StandardCharsets.UTF_8));

client.close();

See more details in Reference Doc


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Java (689,504
Filter (1,831
Http Client (1,292
Asynchronous (1,252
Https (1,081
Netty (810
Http2 (477
Haproxy (299
Redirect (284
Retry (249
Interceptor (240
Related Projects