Package io.quarkus.vertx.http
Interface XForwardedForSelector
public interface XForwardedForSelector
Selects the client address from the
X-Forwarded-For header.
Register a single CDI bean implementing this interface. The same bean is applied to the main HTTP interface and,
when the corresponding quarkus.management.proxy.* properties are enabled, to the management interface.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionselect(XForwardedForSelector.Context context) Returns the chosen client address, ornullor a blank value to reject the request with a400 Bad Request.
-
Method Details
-
select
Returns the chosen client address, ornullor a blank value to reject the request with a400 Bad Request. Surrounding whitespace is trimmed from the returned address.
-