All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vtence.molecule.http.HttpMethod Maven / Gradle / Ivy

package com.vtence.molecule.http;

public enum HttpMethod {
    OPTIONS, GET, HEAD, POST, PUT, DELETE, PATCH;

    public static boolean valid(String method) {
        for (HttpMethod httpMethod : HttpMethod.values()) {
            if (httpMethod.name().equalsIgnoreCase(method)) return true;
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy