public static boolean isHttp(final WebContext context) {
        return SCHEME_HTTP.equalsIgnoreCase(context.getScheme());
    }
Whether the request is HTTP.

@param context the current web context
@return whether the request is HTTP
pac4j-core/src/main/java/org/pac4j/core/context/WebContextHelper.java