To be able to enable a more customizable logging of requests we need to be able to pass some attributes from the WebClient to the underlying library.

This functionality was discussed and agreed in the issue #26208

  • Expose attributes map on ClientHttpRequest and get them populated from the request
  • Add applyAttributes abstract method in AbstractClientHttpRequest that each HTTP Library can implement
  • Jetty and Apache HttpComponents implementation of applyAttributes