Method

zio.http.Method
See theMethod companion object
sealed abstract class Method(val name: String, val ordinal: Int)

HTTP request method as defined by RFC 9110.

Each method has a unique ordinal for efficient array-based dispatch.

Attributes

Companion
object
Source
Method.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ANY
object CONNECT
object DELETE
object GET
object HEAD
class Methods
object OPTIONS
object PATCH
object POST
object PUT
object TRACE
Show all

Members list

Value members

Concrete methods

def #|(that: Method): Method

Attributes

Source
Method.scala
def matches(that: Method): Boolean

Attributes

Source
Method.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Method.scala

Concrete fields

val name: String

Attributes

Source
Method.scala
val ordinal: Int

Attributes

Source
Method.scala