- 
                Notifications
    
You must be signed in to change notification settings  - Fork 38.8k
 
Open
Labels
status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on
Description
Enhancement request
I have some RestClient and WebClient beans already defined in the factory bean (with advanced auto-configuration for HTTP proxy, request authorization, SSL bundles, base-URL, ...).
It would be helpful if @ImportHttpServices accepted a reference to the HttpExchangeAdapter bean to use when building the service proxy.
For instance:
@Configuration
@ImportHttpServices(group = "bidule", types = {BiduleApi.class}, adapter = "biduleClientAdapter")
@ImportHttpServices(group = "machin", types = {MachinApi.class}, adapter = "machinClientAdapter")
public class RestConfiguration {
  @Bean
  RestClientAdapter biduleClientAdapter(RestClient biduleClient) {
    return RestClientAdapter.create(biduleClient);
  }
  @Bean
  RestClientAdapter machinClientAdapter(RestClient machinClient) {
    return RestClientAdapter.create(machinClient);
  }
}Metadata
Metadata
Assignees
Labels
status: waiting-for-triageAn issue we've not yet triaged or decided onAn issue we've not yet triaged or decided on