def cookie.sends

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

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

2402# §5.8.3: domain (exact when host-only), path, and Secure only over https.
2403def cookie.sends(+host: String, +path: String, +https: Bool, +c: Cookie) -> Bool:
2404  Cookie{n, v, +d, +ho, +p, s, o, ss, e} = c
2405  Bool.and(Bool.pick(Bool, ho, String.eq(host, d), cookie.domain_match(host, d)), Bool.and(cookie.path_match(path, p), Bool.or(Bool.not(s), https)))

Uses (10)

Used by (1)