public final class HttpMethods
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static HttpMethod |
CONNECT |
static HttpMethod |
DELETE |
static HttpMethod |
GET |
static HttpMethod |
HEAD |
static HttpMethod |
OPTIONS |
static HttpMethod |
PATCH |
static HttpMethod |
POST |
static HttpMethod |
PUT |
static HttpMethod |
TRACE |
| Modifier and Type | Method and Description |
|---|---|
static HttpMethod |
custom(java.lang.String value,
boolean safe,
boolean idempotent,
RequestEntityAcceptance requestEntityAcceptance)
Deprecated.
The created method will compute the presence of Content-Length headers based on
deprecated logic, use
custom(String, boolean, boolean,
org.apache.pekko.http.javadsl.model.RequestEntityAcceptance, boolean) instead. Deprecated
since 1.4.0. |
static HttpMethod |
custom(java.lang.String value,
boolean safe,
boolean idempotent,
RequestEntityAcceptance requestEntityAcceptance,
boolean contentLengthAllowed)
Create a custom method type.
|
static java.util.Optional<HttpMethod> |
lookup(java.lang.String name)
Looks up a predefined HTTP method with the given name.
|
public static final HttpMethod CONNECT
public static final HttpMethod DELETE
public static final HttpMethod GET
public static final HttpMethod HEAD
public static final HttpMethod OPTIONS
public static final HttpMethod PATCH
public static final HttpMethod POST
public static final HttpMethod PUT
public static final HttpMethod TRACE
@Deprecated public static HttpMethod custom(java.lang.String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance)
custom(String, boolean, boolean,
org.apache.pekko.http.javadsl.model.RequestEntityAcceptance, boolean) instead. Deprecated
since 1.4.0.public static HttpMethod custom(java.lang.String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance, boolean contentLengthAllowed)
public static java.util.Optional<HttpMethod> lookup(java.lang.String name)