Interface Wire

All Known Implementing Classes:
AbstractHeaderBasedCachingWire, AutoRedirectingWire, BasicAuthWire, CachingWire, CookieOptimizingWire, ETagCachingWire, FcWire, LastModifiedCachingWire, OneMinuteWire, RetryWire, TrustedWire, UserAgentWire, VerboseWire

@Immutable public interface Wire
Wire.

An instance of this interface can be used in Request.through(Class,Object...) to decorate an existing wire, for example:

 String html = new JdkRequest("http://google.com")
   .through(VerboseWire.class)
   .through(RetryWire.class)
   .header("Accept", "text/html")
   .fetch()
   .body();

Every Wire decorator passed to through() method wraps a previously existing one.

Since:
0.9