I can add the header in a WebClientBuilder like this:
WebClient.builder().baseUrl(...).defaultHeaders(header -> header.setBasicAuth(...)[...].build();
With the HttpClient I'm trying:
HttpClient.create().baseUrl(...).headers(/*not sure how to set the basic authentication here*/)
Reactor Netty HttpClient does not provide a shortcut for setting this header. You should do it by yourself:
HttpClient.create().baseUrl(...).headers(h -> h.set("Authorization", "Basic " + encodedCredentials))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With