Skip to content

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

License

Notifications You must be signed in to change notification settings

pengshao88/esa-httpclient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Quick Start

final HttpClient client = HttpClient.create()
        .version(HttpVersion.HTTP_2)
        .h2ClearTextUpgrade(true)
        .build();

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%