Skip to content

Files

Latest commit

author
Adrian Cole
Jan 26, 2015
a6724a4 · Jan 26, 2015

History

History
12 lines (9 loc) · 442 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 442 Bytes

OkHttp

This module directs Feign's http requests to OkHttp, which enables SPDY and better network control.

To use OkHttp with Feign, add the OkHttp module to your classpath. Then, configure Feign to use the OkHttpClient:

GitHub github = Feign.builder()
                     .client(new OkHttpClient())
                     .target(GitHub.class, "https://api.github.com");