@SuppressWarnings("deprecation") @Test public void whenReturnTypeIsResponseNoErrorHandling() throws Throwable { Map<String, Collection<String>> headers = new LinkedHashMap<String, Collection<String>>(); headers.put("Location", Arrays.asList("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(); ExecutorService execs = Executors.newSingleThreadExecutor(); TestInterfaceAsync api = AsyncFeign.<Void>asyncBuilder() .client(new AsyncClient.Default<>((request, options) -> response, execs)) .target(TestInterfaceAsync.class, "http: assertEquals(Collections.singletonList("http: unwrap(api.response()).headers().get("Location")); execs.shutdown(); }
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);  }