Package kong.unirest.core
Class HttpMethod
- java.lang.Object
-
- kong.unirest.core.HttpMethod
-
public class HttpMethod extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static HttpMethod
DELETE
static HttpMethod
GET
static HttpMethod
HEAD
private java.lang.String
name
static HttpMethod
OPTIONS
static HttpMethod
PATCH
static HttpMethod
POST
static HttpMethod
PUT
private static java.util.Map<java.lang.String,HttpMethod>
REGISTRY
static HttpMethod
TRACE
static HttpMethod
WEBSOCKET
-
Constructor Summary
Constructors Modifier Constructor Description private
HttpMethod(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<HttpMethod>
all()
java.lang.String
name()
java.lang.String
toString()
static HttpMethod
valueOf(java.lang.String verb)
-
-
-
Field Detail
-
REGISTRY
private static final java.util.Map<java.lang.String,HttpMethod> REGISTRY
-
GET
public static final HttpMethod GET
-
POST
public static final HttpMethod POST
-
PUT
public static final HttpMethod PUT
-
DELETE
public static final HttpMethod DELETE
-
PATCH
public static final HttpMethod PATCH
-
HEAD
public static final HttpMethod HEAD
-
OPTIONS
public static final HttpMethod OPTIONS
-
TRACE
public static final HttpMethod TRACE
-
WEBSOCKET
public static final HttpMethod WEBSOCKET
-
name
private final java.lang.String name
-
-
Method Detail
-
valueOf
public static HttpMethod valueOf(java.lang.String verb)
-
all
public java.util.Set<HttpMethod> all()
-
name
public java.lang.String name()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-