protected static Duration getRequestTimeout(HttpRequest request, Duration defaultTimeout) {
        if ( ! request.hasProperty("timeout")) {
            return defaultTimeout;
        }
        try {
            return Duration.ofMillis((long) (Double.parseDouble(request.getProperty("timeout")) * 1000));
        } catch (Exception e) {
            return defaultTimeout;
        }
    }
Super class for http handlers, that takes care of checking valid
methods for a request. Handlers should subclass this method and
implement the handleMETHOD methods that it supports.

@author hmusum
configserver/src/main/java/com/yahoo/vespa/config/server/http/HttpHandler.java