how do i initialize the basic authentication header for reactor httpclient?

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))

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top