def msg.of

bendonnect-rpc@0.1.0.0 · src/protocol.bend:544

import bendonnect-rpc@0.1.0.0/src/protocol.bend as Protocol
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

544def msg.of(m: Maybe<&2, String>, +b64: Bool) -> Result<&2, &1, Reject, Bytes.Bytes>:
545  match m:
546    case None{}:
547      Fail{Status{400, "invalid percent-encoding in message query parameter"}}
548    case Some{s}:
549      msg.kind(b64, s)

Uses (7)

Used by (1)