class HttpServerRequestUtil {

    public static boolean isRequestHopsLimitExceeded(HttpServerRequest request, Integer hopsLimit){
        if(hopsLimit == null){
            return false;
        }
        Integer hops = HttpRequestHeader.getInteger(request.headers(), HttpRequestHeader.X_HOPS, 0);
        return hops > hopsLimit;
    }

    private  HttpServerRequestUtil();

}