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 and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

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

Constructs a route pattern from a method.

Constructs a route pattern from a method.

Attributes

Concrete fields

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