Package feign.okhttp
Class OkHttpClient
- java.lang.Object
-
- feign.okhttp.OkHttpClient
-
- All Implemented Interfaces:
feign.Client
public final class OkHttpClient extends java.lang.Object implements feign.Client
This module directs Feign's http requests to OkHttp, which enables SPDY and better network control. Ex.GitHub github = Feign.builder().client(new OkHttpClient()).target(GitHub.class, "https://api.github.com");
-
-
Constructor Summary
Constructors Constructor Description OkHttpClient()
OkHttpClient(okhttp3.OkHttpClient delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description feign.Response
execute(feign.Request input, feign.Request.Options options)
-