Package akka.http.javadsl.model
Class HttpMethods
- java.lang.Object
-
- akka.http.javadsl.model.HttpMethods
-
public final class HttpMethods extends java.lang.Object
Contains static constants for predefined method types.
-
-
Field Summary
Fields Modifier and Type Field 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
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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 (before issue #4213).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.
-
-
-
Field Detail
-
CONNECT
public static final HttpMethod CONNECT
-
DELETE
public static final HttpMethod DELETE
-
GET
public static final HttpMethod GET
-
HEAD
public static final HttpMethod HEAD
-
OPTIONS
public static final HttpMethod OPTIONS
-
PATCH
public static final HttpMethod PATCH
-
POST
public static final HttpMethod POST
-
PUT
public static final HttpMethod PUT
-
TRACE
public static final HttpMethod TRACE
-
-
Method Detail
-
custom
@Deprecated public 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 (before issue #4213).Create a custom method type.
-
custom
public static HttpMethod custom(java.lang.String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance, boolean contentLengthAllowed)
Create a custom method type.
-
lookup
public static java.util.Optional<HttpMethod> lookup(java.lang.String name)
Looks up a predefined HTTP method with the given name.
-
-