Routes

zio.http.Routes
See theRoutes companion class
object Routes

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Routes.type

Members list

Value members

Concrete methods

def apply[Env, Err](route: Route[Env, Err], routes: Route[Env, Err]*): Routes[Env, Err]

Constructs new routes from a varargs of individual routes.

Constructs new routes from a varargs of individual routes.

Attributes

def fromIterable[Env, Err](iterable: Iterable[Route[Env, Err]]): Routes[Env, Err]

Constructs new routes from an iterable of individual routes.

Constructs new routes from an iterable of individual routes.

Attributes

def singleton[Env, Err](h: Handler[Env, Err, (Path, Request), Response])(implicit trace: Trace): Routes[Env, Err]

Constructs a singleton route from a handler that handles all possible methods and paths. You would only use this method for testing.

Constructs a singleton route from a handler that handles all possible methods and paths. You would only use this method for testing.

Attributes

Concrete fields

val empty: Routes[Any, Nothing]

A empty routes value that contains no routes inside it.

A empty routes value that contains no routes inside it.

Attributes