def parse.cut
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
932# a response divided into its head and everything after the blank line
933# (RFC 9112 §2.1: header section ends at empty line)
934def parse.cut(c: Cut) -> Reply:
935 match c:
936 case NoCut{}:
937 Torn{"the response head has no blank line after it"}
938 case Cut{before, after}:
939 parse.head(String.lines(before), after)