RoutePattern

zio.http.RoutePattern
See theRoutePattern companion class
object RoutePattern

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(method: Method, path: Path): RoutePattern[Unit]
def apply(method: Method, pathString: String): RoutePattern[Unit]

Constructs a route pattern from a method and a path literal. To match against any method, use zio.http.Method.ANY. The specified string may contain path segments, which are separated by slashes.

Constructs a route pattern from a method and a path literal. To match against any method, use zio.http.Method.ANY. The specified string may contain path segments, which are separated by slashes.

Attributes

def fromMethod(method: Method): RoutePattern[Unit]

Constructs a route pattern from a method.

Constructs a route pattern from a method.

Attributes

Concrete fields

val CONNECT: RoutePattern[Unit]
val DELETE: RoutePattern[Unit]
val GET: RoutePattern[Unit]
val HEAD: RoutePattern[Unit]
val OPTIONS: RoutePattern[Unit]
val PATCH: RoutePattern[Unit]
val POST: RoutePattern[Unit]
val PUT: RoutePattern[Unit]
val TRACE: RoutePattern[Unit]

The any pattern matches any method and any path. It is unlikely you need to use this pattern, because it would preclude the use of any other route (at least, unless listed as the final route in a collection of routes).

The any pattern matches any method and any path. It is unlikely you need to use this pattern, because it would preclude the use of any other route (at least, unless listed as the final route in a collection of routes).

Attributes