def cookie.send

emerging-ezhttp@0.21.0.0 · src/cookie.bend:505

import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie
import Base

505# whether this cookie is sent on this request (RFC 6265 §5.4)
506def cookie.send(host: String, req_path: String, tls: Bool, c: Cookie) -> Bool:
507  match c:
508    case Cookie{name, value, expires, max_age, domain, path, secure, http_only,
509      same_site, host_only}:
510      cookie.send.domain(req_path, tls, secure, path,
511        cookie.domain_ok(host, domain, host_only))

Uses (5)

Used by (1)