Class VertxRequestClientHeadersFactory

java.lang.Object
io.quarkus.rest.client.reactive.VertxRequestClientHeadersFactory
All Implemented Interfaces:
org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory

@Provider public class VertxRequestClientHeadersFactory extends Object implements org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory
A ClientHeadersFactory implementation that propagates HTTP headers from the incoming request to outgoing REST client requests.

This factory reads the org.eclipse.microprofile.rest.client.propagateHeaders configuration property to determine which headers should be propagated from the incoming HTTP request to the REST client calls.

The propagated headers are extracted from the HttpServerRequest and added to the outgoing request headers of the REST client.

  • Constructor Details

    • VertxRequestClientHeadersFactory

      public VertxRequestClientHeadersFactory(io.vertx.core.http.HttpServerRequest httpServerRequest)
  • Method Details

    • update

      public jakarta.ws.rs.core.MultivaluedMap<String,String> update(jakarta.ws.rs.core.MultivaluedMap<String,String> ignore, jakarta.ws.rs.core.MultivaluedMap<String,String> clientOutgoingHeaders)
      Specified by:
      update in interface org.eclipse.microprofile.rest.client.ext.ClientHeadersFactory