o
LiveParamsDecoder
object LiveParamsDecoderFactories for decode-only routed parameters.
Defined by scalive.LiveParamsDecoder. View source (scalive/api/src/scalive/LiveParamsCodec.scala:99-116)
Methods1
custom
def custom[PathParams, Params](decodeFn: (PathParams, zio.http.URL) => Either[|[LiveParamsCodec.DecodeError, String], Params]): LiveParamsDecoder[PathParams, Params]Creates a decoder from an application function.
Returning a string is shorthand for LiveParamsCodec.DecodeError(message). The function is
expected to be total: an exception thrown while invoking it is not converted into a decode
error.
Parameters
decodeFndecodes the path values and complete URL
Returns
- Returns
a decoder that normalizes string failures
Defined by scalive.LiveParamsDecoder.custom. View source (scalive/api/src/scalive/LiveParamsCodec.scala:111-116)