public static Mode getApplicationFileMode(com.yahoo.jdisc.http.HttpRequest.Method method) {
        return switch (method) {
            case GET, OPTIONS -> Mode.READ;
            default -> Mode.WRITE;
        };
    }
Represents a {@link ContentRequest}, and contains common functionality for content requests for all content handlers.

@author Ulf Lilleengen
configserver/src/main/java/com/yahoo/vespa/config/server/http/ContentRequest.java