LiveRouteMountAspectBuilder
class LiveRouteMountAspectBuilder[R, A, Need, Ctx]Route construction after a mount aspect has produced typed lifecycle context.
Defined by scalive.LiveRouteMountAspectBuilder. View source (scalive/api/src/scalive/routing/LiveRouting.scala:513-701)
Methods11
apply
def apply: [Msg, Model](factory: (A, zio.http.Request, Ctx) => LiveView[Msg, Model])(LiveRoute[R, A] { type Input = Need })Defined by scalive.LiveRouteMountAspectBuilder.apply. View source (scalive/api/src/scalive/routing/LiveRouting.scala:651-653)
def apply: [Msg, Model](view: => LiveView[Msg, Model])(LiveRoute[R, A] { type Input = Need })Defined by scalive.LiveRouteMountAspectBuilder.apply. View source (scalive/api/src/scalive/routing/LiveRouting.scala:648-649)
context
def context: [Msg, Model](factory: Ctx => LiveView[Msg, Model])(LiveRoute[R, A] { type Input = Need })Defined by scalive.LiveRouteMountAspectBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:655-658)
def context: [Msg, Model](factory: (A, zio.http.Request, Ctx) => LiveView[Msg, Model])(LiveRoute[R, A] { type Input = Need })Defined by scalive.LiveRouteMountAspectBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:667-670)
def context: [R1, Msg, Model](factory: (Ctx, R1) => LiveView[Msg, Model])(using evidence$1: zio.package.Tag[R1])(LiveRoute[&[R, R1], A] { type Input = Need })Defined by scalive.LiveRouteMountAspectBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:660-665)
def context: [R1, Msg, Model](factory: (A, zio.http.Request, Ctx, R1) => LiveView[Msg, Model])(using evidence$1: zio.package.Tag[R1])(LiveRoute[&[R, R1], A] { type Input = Need })Defined by scalive.LiveRouteMountAspectBuilder.context. View source (scalive/api/src/scalive/routing/LiveRouting.scala:672-685)
from
def from: [Msg, Model](factory: (A, zio.http.Request, Ctx) => LiveView[Msg, Model])(LiveRoute[R, A] { type Input = Need })Defined by scalive.LiveRouteMountAspectBuilder.from. View source (scalive/api/src/scalive/routing/LiveRouting.scala:687-700)
guardConnectedTurns
def guardConnectedTurns[Result <: Unit](guard: Ctx => zio.IO[LiveConnectedTurnFailure, Result]): LiveRouteMountAspectBuilder[R, A, Need, Ctx]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.LiveRouteMountAspectBuilder.guardConnectedTurns. View source (scalive/api/src/scalive/routing/LiveRouting.scala:555-565)
params
def params[Params](codec: LiveParamsCodec[A, Params]): LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, Params]Defined by scalive.LiveRouteMountAspectBuilder.params. View source (scalive/api/src/scalive/routing/LiveRouting.scala:605-616)
def params: LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, A]Defined by scalive.LiveRouteMountAspectBuilder.params. View source (scalive/api/src/scalive/routing/LiveRouting.scala:618-619)
query
def query[Query](codec: zio.http.codec.package.QueryCodec[Query])(using combiner: zio.http.codec.Combiner[A, Query]): LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, combiner.Out]Defined by scalive.LiveRouteMountAspectBuilder.query. View source (scalive/api/src/scalive/routing/LiveRouting.scala:621-626)
def query[Query](name: String)(using evidence$1: zio.schema.Schema[Query], combiner: zio.http.codec.Combiner[A, Query]): LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, combiner.Out]Defined by scalive.LiveRouteMountAspectBuilder.query. View source (scalive/api/src/scalive/routing/LiveRouting.scala:628-633)
def query[Query](using evidence$1: zio.schema.Schema[Query], combiner: zio.http.codec.Combiner[A, Query]): LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, combiner.Out]Defined by scalive.LiveRouteMountAspectBuilder.query. View source (scalive/api/src/scalive/routing/LiveRouting.scala:642-646)
queryOptional
def queryOptional[Query](name: String)(using evidence$1: zio.schema.Schema[Query], combiner: zio.http.codec.Combiner[A, Option[Query]]): LiveRouteMountAspectParamsBuilder[R, A, Need, Ctx, combiner.Out]Defined by scalive.LiveRouteMountAspectBuilder.queryOptional. View source (scalive/api/src/scalive/routing/LiveRouting.scala:635-640)
withConnectedResources
def withConnectedResources[Result <: Unit](initialize: (Ctx, ConnectedResources) => zio.Task[Result]): LiveRouteMountAspectBuilder[R, A, Need, Ctx]Appends connected setup using the context available at this declaration.
Defined by scalive.LiveRouteMountAspectBuilder.withConnectedResources. View source (scalive/api/src/scalive/routing/LiveRouting.scala:522-532)
withLayout
def withLayout(layout: LiveLayout[A, Ctx]): LiveRouteMountAspectBuilder[R, A, Need, Ctx]Defined by scalive.LiveRouteMountAspectBuilder.withLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:567-575)
def withLayout[LayoutContext](layout: LiveLayout[A, LayoutContext], select: Ctx => LayoutContext): LiveRouteMountAspectBuilder[R, A, Need, Ctx]Appends a layout, selecting its input from the context available at this declaration. The pure selector adapts only the layout; later aspects preserve this context selection.
Defined by scalive.LiveRouteMountAspectBuilder.withLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:580-583)
withMountAspect
def withMountAspect[R1, Out, Result](aspect: LiveRouteMountAspect[R1, A, Ctx, Out])(using append: ContextAppend.Aux[Ctx, Out, Result]): LiveRouteMountAspectBuilder[&[R, R1], A, Need, Result]Defined by scalive.LiveRouteMountAspectBuilder.withMountAspect. View source (scalive/api/src/scalive/routing/LiveRouting.scala:534-545)
withRootLayout
def withRootLayout(layout: LiveRootLayout[A, Ctx]): LiveRouteMountAspectBuilder[R, A, Need, Ctx]Defined by scalive.LiveRouteMountAspectBuilder.withRootLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:585-595)
def withRootLayout[LayoutContext](layout: LiveRootLayout[A, LayoutContext], select: Ctx => LayoutContext): LiveRouteMountAspectBuilder[R, A, Need, Ctx]Replaces the route root, selecting its input from this declaration's context. Key and render select independently, so the selector must be pure and deterministic.
Defined by scalive.LiveRouteMountAspectBuilder.withRootLayout. View source (scalive/api/src/scalive/routing/LiveRouting.scala:600-603)