def cookie.parse.parts
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
228# Set-Cookie split on `;`
229def cookie.parse.parts(ps: List<&2, String>) -> Maybe<&2, Cookie>:
230 match ps:
231 case []:
232 None{}
233 case h <> t:
234 +pair = String.trim(h)
235 cookie.from(pair, t, Http.divide(pair, "="))