Class HttpMethod$
java.lang.Object
org.apache.pekko.http.scaladsl.model.HttpMethod$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpMethod$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a custom method by name and assumes properties conservatively to be safe = false, idempotent = false, requestEntityAcceptance = Expected and contentLengthAllowed always true.custom(String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance) Deprecated.The created method will compute the presence of Content-Length headers based on deprecated logic.custom(String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance, boolean contentLengthAllowed) Create a custom method type.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
HttpMethod$
public HttpMethod$()
-
-
Method Details
-
custom
public HttpMethod custom(String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance) Deprecated.The created method will compute the presence of Content-Length headers based on deprecated logic.Create a custom method type.- Parameters:
name- (undocumented)safe- (undocumented)idempotent- (undocumented)requestEntityAcceptance- (undocumented)- Returns:
- (undocumented)
-
custom
public HttpMethod custom(String name, boolean safe, boolean idempotent, RequestEntityAcceptance requestEntityAcceptance, boolean contentLengthAllowed) Create a custom method type.- Parameters:
name- (undocumented)safe- (undocumented)idempotent- (undocumented)requestEntityAcceptance- (undocumented)contentLengthAllowed- (undocumented)- Returns:
- (undocumented)
-
custom
Creates a custom method by name and assumes properties conservatively to be safe = false, idempotent = false, requestEntityAcceptance = Expected and contentLengthAllowed always true.- Parameters:
name- (undocumented)- Returns:
- (undocumented)
-