Getting Started

It’s very easy to get started with RestClient!

Step 1: Add dependency

<dependency>
    <groupId>io.esastack</groupId>
    <artifactId>restclient</artifactId>
    <version>${esa-restclient.version}</version>
</dependency>

Step 2: Send a request and handle response

final RestClient client = RestClient.ofDefault();

final String entity = client.post("http://127.0.0.1:8081/")
        .entity("Hello Server")
        .execute()
        .toCompletableFuture()
        .get()
        .bodyToEntity(String.class);


Last modified April 22, 2022: add docs about traffic-split (34b84ce)