Method

object Method extends Methods

For a description of the behavior of apply, safeApply and unsafeApply methods, see sttp.model.

Companion:
class
trait Methods
class Object
trait Matchable
class Any
Method.type

Value members

Concrete methods

def isIdempotent(m: Method): Boolean

An HTTP method is idempotent if an identical request can be made once or several times in a row with the same effect while leaving the server in the same state.

An HTTP method is idempotent if an identical request can be made once or several times in a row with the same effect while leaving the server in the same state.

See also:
def isSafe(m: Method): Boolean

An HTTP method is safe if it doesn't alter the state of the server.

An HTTP method is safe if it doesn't alter the state of the server.

See also:
def safeApply(method: String): Either[String, Method]
def unsafeApply(method: String): Method
Throws:
IllegalArgumentException

If the method value is not a valid token.

Inherited fields

Inherited from:
Methods
Inherited from:
Methods
val GET: Method
Inherited from:
Methods
Inherited from:
Methods
Inherited from:
Methods
Inherited from:
Methods
Inherited from:
Methods
val PUT: Method
Inherited from:
Methods
Inherited from:
Methods