public static enum HttpRequest.Method extends Enum<HttpRequest.Method>
Enum Constant and Description |
---|
CONNECT |
GET |
HEAD |
OPTIONS |
POST |
PUT |
Modifier and Type | Method and Description |
---|---|
HttpMessage.HasBody |
hasBody() |
static HttpRequest.Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRequest.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRequest.Method GET
public static final HttpRequest.Method POST
public static final HttpRequest.Method HEAD
public static final HttpRequest.Method PUT
public static final HttpRequest.Method CONNECT
public static final HttpRequest.Method OPTIONS
public static HttpRequest.Method[] values()
for (HttpRequest.Method c : HttpRequest.Method.values()) System.out.println(c);
public static HttpRequest.Method valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic HttpMessage.HasBody hasBody()
Copyright © 2018 Arno Unkrig. All rights reserved.