def msg.of
import bendonnect-rpc@0.1.0.0/src/protocol.bend as Protocolimport 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)