def cookie.pairs.keep
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
287# keep name=value when the name is not empty
288def cookie.pairs.keep(name: String, value: String, empty: Bool,
289 rest: Unit -> List<&2, String>) -> List<&2, String>:
290 match empty:
291 case True{}:
292 rest(Unit{})
293 case False{}:
294 (name ++ "=" ++ value) <> rest(Unit{})