Http.reply.for.pick: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/http.bend as Http Lines 1094-1102 of emerging-ezhttp@0.21.0.0/src/http.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&start_line=1094&end_line=1102 import Base # HEAD carries no message body; any other method keeps the body (RFC 9110 ยง9.3.2) def reply.for.pick(reply: Reply, head: Bool) -> Reply: match reply head: case Torn{why} _: Torn{why} case Reply{status, headers, body} False{}: Reply{status, headers, body} case Reply{status, headers, body} True{}: Reply{status, headers, ""} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Reply