Openapi.ctype: def of ezmcp@0.1.0.0 Import: import ezmcp@0.1.0.0/src/openapi.bend as Openapi Lines 1245-1251 of ezmcp@0.1.0.0/src/openapi.bend: https://jend.leeeet.dev/read.txt?path=ezmcp@0.1.0.0/src/openapi.bend&start_line=1245&end_line=1251 import Base import emerging-ezhttp@0.21.0.0/src/http.bend as Http # the header field naming a body's media type, when there is a body def ctype(+mt: String, body: Maybe<&2, String>) -> List<&2, Http.Header>: match body: case None{}: [] case Some{_b}: [Http.H{"Content-Type", mt}] Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Header