Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
c

HttpFormDecoder

class HttpFormDecoder[A]

Bounded decoder for CSRF-protected, URL-encoded ordinary HTTP forms.

Defined by scalive.HttpFormDecoder. View source (scalive/transport/zio-http/src/scalive/HttpFormDecoder.scala:7-37)

Methods2

decode

def decode(request: zio.http.Request): zio.package.IO[HttpFormDecoder.Error, A]

Defined by scalive.HttpFormDecoder.decode. View source (scalive/transport/zio-http/src/scalive/HttpFormDecoder.scala:12-24)

respond

def respond[R, E](request: zio.http.Request, onValidation: FormErrors => zio.http.Response, onRejected: HttpFormDecoder.Error => zio.package.URIO[R, Unit] = ...)(onDecoded: A => zio.ZIO[R, E, zio.http.Response]): zio.ZIO[R, E, zio.http.Response]

Defined by scalive.HttpFormDecoder.respond. View source (scalive/transport/zio-http/src/scalive/HttpFormDecoder.scala:26-36)