io.quartz.http2.routes

Members list

Concise view

Type members

Classlikes

object RIO

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
RIO.type
object Routes

Attributes

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

Types

type HttpRoute = Request => IO[Option[Response]]
type HttpRouteIO = PartialFunction[Request, IO[Response]]
type HttpRouteRIO[Env] = PartialFunction[Request, RIO[Env, Response]]
type RIO[E, T] = Kleisli[IO, E, T]
type WebFilter = Request => IO[Either[Response, Request]]

A type alias representing a web filter, which takes a request and returns an IO that produces either a response or the original request. The filter can be used to transform incoming requests or to perform some validation or authorization logic before passing the request to the HTTP route.

A type alias representing a web filter, which takes a request and returns an IO that produces either a response or the original request. The filter can be used to transform incoming requests or to perform some validation or authorization logic before passing the request to the HTTP route.

Attributes