LiveMountAspect
object LiveMountAspectConstructors for mount aspects.
Defined by scalive.LiveMountAspect. View source (scalive/api/src/scalive/LiveMountAspect.scala:158-197)
Methods2
fromRequest
def fromRequest[R, A, Claims, Ctx](disconnected: LiveMountRequest[A] => zio.ZIO[R, zio.http.Response, (Claims, Ctx)], connected: (Claims, LiveMountRequest[A]) => zio.ZIO[R, LiveMountFailure, Ctx])(using evidence$1: zio.json.JsonCodec[Claims]): LiveMountAspect[R, A, Any, Claims, Ctx]Creates an aspect that does not consume context from a preceding aspect.
This is the request-only form of make. The callbacks have the same lifecycle, claim, and
failure behavior, while the aspect input is fixed to Any and ignored.
Parameters
disconnectedthe disconnected-mount callback
connectedthe connected-mount callback
Defined by scalive.LiveMountAspect.fromRequest. View source (scalive/api/src/scalive/LiveMountAspect.scala:188-195)
make
def make[R, A, In, Claims, Ctx](disconnected: (LiveMountRequest[A], In) => zio.ZIO[R, zio.http.Response, (Claims, Ctx)], connected: (Claims, LiveMountRequest[A], In) => zio.ZIO[R, LiveMountFailure, Ctx])(using evidence$1: zio.json.JsonCodec[Claims]): LiveMountAspect[R, A, In, Claims, Ctx]Creates an aspect that consumes context from a preceding aspect.
disconnected runs before HTTP mount and either returns claims plus disconnected context or
fails with the HTTP response to return. connected receives the verified claims and a
phase-specific request before socket mount, and either returns fresh connected context or a
LiveMountFailure. The connected request is synthesized from the socket join URL and does
not preserve the original HTTP request's cookies or headers.
Parameters
disconnectedthe disconnected-mount callback
connectedthe connected-mount callback
Defined by scalive.LiveMountAspect.make. View source (scalive/api/src/scalive/LiveMountAspect.scala:172-176)