@Test public void should_exchange_absolute_url_without_instance() { wireMock.stubFor(get("/foo").willReturn(ok())); Mono<ClientResponse> exchange = instanceWebClient.instance(Mono.empty()) .get() .uri(wireMock.url("/foo")) .exchange(); StepVerifier.create(exchange).expectNextCount(1).verifyComplete(); }
public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } protected  InstanceWebClient(WebClient webClient); }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } protected  InstanceWebClient(WebClient webClient); WebClient instance(Mono<Instance> instance); WebClient instance(Instance instance); static InstanceWebClient.Builder builder(); }
InstanceWebClient { public WebClient instance(Mono<Instance> instance) { return webClient.mutate() .filters(filters -> filters.add(0, InstanceExchangeFilterFunctions.setInstance(instance))) .build(); } protected  InstanceWebClient(WebClient webClient); WebClient instance(Mono<Instance> instance); WebClient instance(Instance instance); static InstanceWebClient.Builder builder();  }