def jar.header

bend-kit-http@0.38.2.0 · http.bend:2437

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

2437# One cookie field: the caller's own cookie values first, then the jar's.
2438def jar.header(+h: Map<&2, List<&2, String>>, +s: String) -> Map<&2, List<&2, String>>:
2439  +old = String.join(fields(h, "cookie"), "; ")
2440  Bool.pick(Map<&2, List<&2, String>>, String.is_empty(s), h, set(h, "cookie", Bool.pick(String, String.is_empty(old), s, old ++ "; " ++ s)))

Uses (9)

Used by (2)