@Test public void whenReturnTypeIsResponseNoErrorHandling() { Map<String, Collection<String>> headers = new LinkedHashMap<>(); headers.put("Location", Collections.singletonList("http: final Response response = Response.builder() .status(302) .reason("Found") .headers(headers) .request(Request.create(HttpMethod.GET, "/", Collections.emptyMap(), null, Util.UTF_8)) .body(new byte[0]) .build(); TestInterface api = Feign.builder() .client((request, options) -> response) .target(TestInterface.class, "http: assertEquals(api.response().headers().get("Location"), Collections.singletonList("http: }
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);  }