HttpAppMiddlewareSyntax

zio.http.HttpAppMiddleware$.HttpAppMiddlewareSyntax
final implicit class HttpAppMiddlewareSyntax[+LowerEnv, -UpperEnv, +LowerErr, -UpperErr](val self: HttpAppMiddleware[LowerEnv, UpperEnv, LowerErr, UpperErr]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def when(condition: Request => Boolean)(implicit trace: Trace): HttpAppMiddleware[LowerEnv, UpperEnv, LowerErr, UpperErr]

Applies Middleware based only if the condition function evaluates to true

Applies Middleware based only if the condition function evaluates to true

Attributes

def whenZIO(condition: Request => ZIO[Any, Nothing, Boolean])(implicit trace: Trace): HttpAppMiddleware[LowerEnv, UpperEnv, LowerErr, UpperErr]

Applies Middleware based only if the condition effectful function evaluates to true

Applies Middleware based only if the condition effectful function evaluates to true

Attributes

Concrete fields

val self: HttpAppMiddleware[LowerEnv, UpperEnv, LowerErr, UpperErr]