def header.find
import cswap-bend-cli@0.1.0.0/http.bend as Httpimport Base
73def header.find(+name: String, ls: List<&2, String>, found: Maybe<&2, String>) -> Maybe<&2, String>:
74 match ls found:
75 case _ Some{v}:
76 Some{v}
77 case Nil{} None{}:
78 None{}
79 case Con{h, t} None{}:
80 header.find(name, t, header.match(name, h))