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