public final class OkHttpClient extends Object implements Client, AsyncClient<Object>
GitHub github = Feign.builder().client(new OkHttpClient()).target(GitHub.class, "https://api.github.com");
Client.Default, Client.Proxied
AsyncClient.Default<C>, AsyncClient.Pseudo<C>
Constructor and Description |
---|
OkHttpClient() |
OkHttpClient(okhttp3.OkHttpClient delegate) |
Modifier and Type | Method and Description |
---|---|
Response |
execute(Request input,
Request.Options options) |
CompletableFuture<Response> |
execute(Request input,
Request.Options options,
Optional<Object> requestContext) |
public OkHttpClient()
public OkHttpClient(okhttp3.OkHttpClient delegate)
public Response execute(Request input, Request.Options options) throws IOException
execute
in interface Client
IOException
public CompletableFuture<Response> execute(Request input, Request.Options options, Optional<Object> requestContext)
execute
in interface AsyncClient<Object>
Copyright © 2012–2025 OpenFeign. All rights reserved.