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) Deprecated.static HttpMethodcustom(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, usecustom(String, boolean, boolean, org.apache.pekko.http.javadsl.model.RequestEntityAcceptance, boolean)instead. Deprecated since 1.4.0.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.- Since:
- 1.4.0
-
lookup
Looks up a predefined HTTP method with the given name.
-
custom(String, boolean, boolean, org.apache.pekko.http.javadsl.model.RequestEntityAcceptance, boolean)instead.