def fe.sasl

bend-kit-postgres@0.3.0.0 · codec.bend:717

import bend-kit-postgres@0.3.0.0/codec.bend as Codec
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

717def fe.sasl(mech: Bytes.Bytes, r: Cur & Maybe<&1, Bytes.Bytes>) -> Cur & Front:
718  (c, m) = r
719  match m:
720    case Some{d}:
721      (c, SASLInitial{mech, d})
722    case None{}:
723      (fail(c), SASLInitial{mech, Bytes.new(0)})

Uses (8)

Used by (1)