def ct_of.fin
import bendonnect-rpc@0.1.0.0/src/transport/server.bend as Serverimport Base
import bendonnect-rpc@0.1.0.0/src/protocol.bend as P
198# Content type -> (stream?, codec), used only to shape rejections. Falls back to unary JSON.
199def ct_of.fin(m: Maybe<&2, P.Ct>) -> P.Ct:
200 match m:
201 case None{}:
202 P.Ct{False{}, P.Json{}}
203 case Some{c}:
204 c