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

com.twilio.http.HttpMethod Maven / Gradle / Ivy

There is a newer version: 10.1.5
Show newest version
package com.twilio.http;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.twilio.converter.Promoter;

public enum HttpMethod {
    GET("GET"),
    POST("POST"),
    PUT("PUT"),
    DELETE("DELETE"),
    HEAD("HEAD"),
    OPTIONS("OPTIONS");

    private final String method;

    HttpMethod(final String method) {
        this.method = method;
    }

    public String toString() {
        return method;
    }

    @JsonCreator
    public static HttpMethod forValue(final String value) {
        return Promoter.enumFromString(value, HttpMethod.values());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy