Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

LiveRouteParamsBuilder

class LiveRouteParamsBuilder[A, Params]

A route whose path and query values are decoded for a sibling Routed.

Defined by scalive.LiveRouteParamsBuilder. View source (scalive/api/src/scalive/routing/LiveRouting.scala:884-1026)

Methods7

->

def ->: [Msg, Model](view: => LiveView.Routed[Msg, Model, Params])(LiveRoute[Any, A] { type Input = Any })

Defined by scalive.LiveRouteParamsBuilder.->. View source (scalive/api/src/scalive/routing/LiveRouting.scala:990-993)

apply

def apply: [Msg, Model](factory: zio.http.Request => LiveView.Routed[Msg, Model, Params])(LiveRoute[Any, A] { type Input = Any })

Defined by scalive.LiveRouteParamsBuilder.apply. View source (scalive/api/src/scalive/routing/LiveRouting.scala:942-944)

def apply: [Msg, Model](view: => LiveView.Routed[Msg, Model, Params])(LiveRoute[Any, A] { type Input = Any })

Defined by scalive.LiveRouteParamsBuilder.apply. View source (scalive/api/src/scalive/routing/LiveRouting.scala:937-940)

context

def context: [Ctx, Msg, Model](factory: Ctx => LiveView.Routed[Msg, Model, Params])(LiveRoute[Any, A] { type Input = Ctx })

Defined by scalive.LiveRouteParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:946-949)

def context: [Ctx, Msg, Model](factory: (A, zio.http.Request, Ctx) => LiveView.Routed[Msg, Model, Params])(LiveRoute[Any, A] { type Input = Ctx })

Defined by scalive.LiveRouteParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:956-970)

def context: [Ctx, R, Msg, Model](factory: (Ctx, R) => LiveView.Routed[Msg, Model, Params])(using evidence$1: zio.package.Tag[R])(LiveRoute[R, A] { type Input = Ctx })

Defined by scalive.LiveRouteParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:951-954)

def context: [Ctx, R, Msg, Model](factory: (A, zio.http.Request, Ctx, R) => LiveView.Routed[Msg, Model, Params])(using evidence$1: zio.package.Tag[R])(LiveRoute[R, A] { type Input = Ctx })

Defined by scalive.LiveRouteParamsBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:972-988)

from

def from: [R, Msg, Model](factory: (A, zio.http.Request, R) => LiveView.Routed[Msg, Model, Params])(using evidence$1: zio.package.Tag[R])(LiveRoute[R, A] { type Input = Any })

Defined by scalive.LiveRouteParamsBuilder.from. View source (scalive/api/src/scalive/routing/LiveRouting.scala:995-1009)

guardConnectedTurns

def guardConnectedTurns[Result <: Unit](guard: Any => zio.IO[LiveConnectedTurnFailure, Result]): LiveRouteParamsBuilder[A, Params]

Appends a policy check before each connected application turn.

Guards at one boundary run in declaration order; session guards run before route guards. The callback receives the context available at this builder. Succeed with Unit to continue, or fail with LiveConnectedTurnFailure for a controlled halt, redirect, reload, or disconnect. Guards are inherited by nested LiveViews and do not run during mount, disconnected rendering, or framework cleanup.

Defined by scalive.LiveRouteParamsBuilder.guardConnectedTurns. View source (scalive/api/src/scalive/routing/LiveRouting.scala:925-935)

mapParamsDecodeOnly

def mapParamsDecodeOnly[Params2](decodeParams: Params => Params2): LiveRouteParamsBuilder[A, Params2]

Defined by scalive.LiveRouteParamsBuilder.mapParamsDecodeOnly. View source (scalive/api/src/scalive/routing/LiveRouting.scala:905-915)

withConnectedResources

def withConnectedResources[Result <: Unit](initialize: (Any, ConnectedResources) => zio.Task[Result]): LiveRouteParamsBuilder[A, Params]

Appends connected setup before this route's connected mount.

Defined by scalive.LiveRouteParamsBuilder.withConnectedResources. View source (scalive/api/src/scalive/routing/LiveRouting.scala:893-903)