
com.twilio.http.HttpMethod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twilio Show documentation
Show all versions of twilio Show documentation
Twilio Java Helper Library
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 - 2025 Weber Informatics LLC | Privacy Policy