Package akka.http.javadsl.model
Class HttpMethod
java.lang.Object
akka.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Returns if requests with this method may contain an entity.abstract boolean
Returns if this method is "idempotent" as defined in http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.2.2abstract 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.1final String
name()
Returns the name of the method, always equal to [[value]].abstract RequestEntityAcceptance
Returns the entity acceptance level for this method.abstract String
value()
Returns the name of the method.
-
Constructor Details
-
HttpMethod
public HttpMethod()
-
-
Method Details
-
name
Returns the name of the method, always equal to [[value]]. -
value
Returns the name of the method. -
isSafe
public 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 -
isIdempotent
public 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 -
isEntityAccepted
public abstract boolean isEntityAccepted()Returns if requests with this method may contain an entity. -
requestEntityAcceptance
Returns the entity acceptance level for this method.
-