Class HttpMethods
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpMethods
Contains static constants for predefined method types.
-
Field Summary
FieldsModifier 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) 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
public static HttpMethod custom(String value, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance) Create a custom method type. -
lookup
Looks up a predefined HTTP method with the given name.
-