Package feign.okhttp

Class 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");
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface feign.Client

        feign.Client.Default
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OkHttpClient

        public OkHttpClient()
      • OkHttpClient

        public OkHttpClient​(okhttp3.OkHttpClient delegate)
    • Method Detail

      • execute

        public feign.Response execute​(feign.Request input,
                                      feign.Request.Options options)
                               throws java.io.IOException
        Specified by:
        execute in interface feign.Client
        Throws:
        java.io.IOException