@Test public void throwsFeignExceptionWithoutBody() { server.enqueue(new MockResponse().setBody("success!")); TestInterface api = Feign.builder() .decoder((response, type) -> { throw new IOException("timeout"); }) .target(TestInterface.class, "http: try { api.noContent(); } catch (FeignException e) { assertThat(e.getMessage()) .isEqualTo("timeout reading POST http: assertThat(e.contentUTF8()).isEqualTo(""); } }
public static Builder builder() { return new Builder(); }
Feign { public static Builder builder() { return new Builder(); } }
Feign { public static Builder builder() { return new Builder(); }  }
Feign { public static Builder builder() { return new Builder(); }  static Builder builder(); static String configKey(Class targetType, Method method); @Deprecated static String configKey(Method method); abstract T newInstance(Target<T> target); }
Feign { public static Builder builder() { return new Builder(); }  static Builder builder(); static String configKey(Class targetType, Method method); @Deprecated static String configKey(Method method); abstract T newInstance(Target<T> target);  }