@SuppressWarnings("resource") @Test public void decodeLogicSupportsByteArray() throws Throwable { byte[] expectedResponse = {12, 34, 56}; server.enqueue(new MockResponse().setBody(new Buffer().write(expectedResponse))); OtherTestInterfaceAsync api = AsyncFeign.asyncBuilder().target(OtherTestInterfaceAsync.class, "http: assertThat(unwrap(api.binaryResponseBody())).containsExactly(expectedResponse); }
public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } protected  AsyncFeign(AsyncBuilder<C> asyncBuilder); }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } protected  AsyncFeign(AsyncBuilder<C> asyncBuilder); static AsyncBuilder<C> asyncBuilder(); @Override T newInstance(Target<T> target); T newInstance(Target<T> target, C context); }
AsyncFeign extends Feign { public static <C> AsyncBuilder<C> asyncBuilder() { return new AsyncBuilder<>(); } protected  AsyncFeign(AsyncBuilder<C> asyncBuilder); static AsyncBuilder<C> asyncBuilder(); @Override T newInstance(Target<T> target); T newInstance(Target<T> target, C context);  }