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 |
createCustom(java.lang.String value,
boolean safe,
boolean idempotent,
RequestEntityAcceptance requestEntityAcceptance)
Deprecated.
Use
custom(java.lang.String, boolean, boolean, akka.http.javadsl.model.RequestEntityAcceptance) instead. Will be removed in Akka HTTP 11.0. |
static HttpMethod |
custom(java.lang.String value,
boolean safe,
boolean idempotent,
RequestEntityAcceptance requestEntityAcceptance)
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 createCustom(java.lang.String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance)
custom(java.lang.String, boolean, boolean, akka.http.javadsl.model.RequestEntityAcceptance)
instead. Will be removed in Akka HTTP 11.0.public static HttpMethod custom(java.lang.String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance)
public static java.util.Optional<HttpMethod> lookup(java.lang.String name)