Routes

io.quartz.http2.routes.Routes$
object Routes

Attributes

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

Members list

Concise view

Value members

Concrete methods

def of(pf: HttpRouteIO, filter: WebFilter): HttpRoute

Lifts PartialFunction based HttpRouteIO into an Option based HttpRoute applying a specified filter.

Lifts PartialFunction based HttpRouteIO into an Option based HttpRoute applying a specified filter.

Attributes

filter

the WebFilter to apply to incoming requests before processing.

pf

the HttpRouteIO that maps requests to IO computations producing responses.

Returns:

an HttpRoute that handles requests based on the given HttpRouteIO and WebFilter.

def of[Env](env: Env, pf: HttpRouteRIO[Env], filter: WebFilter): HttpRoute

Creates an HttpRoute by applying the given HttpRouteRIO to an environment and a WebFilter. The resulting HttpRoute handles requests based on the given HttpRouteRIO, which is a partial function that maps requests to RIO computations that may produce an HTTP response. The Env parameter represents the environment required by the computations, and is passed to the RIO monad using the run method. The WebFilter is applied to incoming requests before they are passed to the HttpRouteRIO, and can be used to pre-process requests or perform authentication or other security checks.

Creates an HttpRoute by applying the given HttpRouteRIO to an environment and a WebFilter. The resulting HttpRoute handles requests based on the given HttpRouteRIO, which is a partial function that maps requests to RIO computations that may produce an HTTP response. The Env parameter represents the environment required by the computations, and is passed to the RIO monad using the run method. The WebFilter is applied to incoming requests before they are passed to the HttpRouteRIO, and can be used to pre-process requests or perform authentication or other security checks.

Attributes

env

the environment required by the HttpRouteRIO computations.

filter

the WebFilter to apply to incoming requests before processing.

pf

the HttpRouteRIO that maps requests to RIO computations producing responses.

Returns:

an HttpRoute that handles requests based on the given HttpRouteRIO and WebFilter.