public class HttpServerRequestUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
increaseRequestHops(io.vertx.core.http.HttpServerRequest request)
Increases the value of the
HttpRequestHeader.X_HOPS header. |
static boolean |
isRemoteAddressLoopbackAddress(io.vertx.core.http.HttpServerRequest request) |
static boolean |
isRequestHopsLimitExceeded(io.vertx.core.http.HttpServerRequest request,
java.lang.Integer hopsLimit)
Checks whether the request hops limit is reached based on the
HttpRequestHeader.X_HOPS header. |
public static boolean isRemoteAddressLoopbackAddress(io.vertx.core.http.HttpServerRequest request)
public static void increaseRequestHops(io.vertx.core.http.HttpServerRequest request)
HttpRequestHeader.X_HOPS header. Adds the header when not already present.request - the request to increase the header valuepublic static boolean isRequestHopsLimitExceeded(io.vertx.core.http.HttpServerRequest request,
java.lang.Integer hopsLimit)
HttpRequestHeader.X_HOPS header.request - the request to checkhopsLimit - the request hops limitHttpRequestHeader.X_HOPS header value is greater than the hopsLimit parameter