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 HttpMethodstatic final HttpMethodstatic final HttpMethodstatic final HttpMethodstatic final HttpMethodstatic final HttpMethodstatic final HttpMethodstatic final HttpMethodstatic final HttpMethod -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpMethodcustom(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.
-