Class HttpMethod
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpMethod
- Direct Known Subclasses:
- HttpMethod
Represents an HTTP request method. See 
HttpMethods for a set of predefined methods and
 static constructors to create custom ones.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract booleanReturns if requests with this method may contain an entity.abstract booleanReturns if this method is "idempotent" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.2abstract booleanisSafe()Returns if this method is "safe" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.1final Stringname()Returns the name of the method, always equal to [[value]].abstract RequestEntityAcceptanceReturns the entity acceptance level for this method.abstract Stringvalue()Returns the name of the method.
- 
Constructor Details- 
HttpMethodpublic HttpMethod()
 
- 
- 
Method Details- 
nameReturns the name of the method, always equal to [[value]].
- 
valueReturns the name of the method.
- 
isSafepublic abstract boolean isSafe()Returns if this method is "safe" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.1
- 
isIdempotentpublic abstract boolean isIdempotent()Returns if this method is "idempotent" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.2
- 
isEntityAcceptedpublic abstract boolean isEntityAccepted()Returns if requests with this method may contain an entity.
- 
requestEntityAcceptanceReturns the entity acceptance level for this method.
 
-