def cookie.receive
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
388# store the response host on a host-only cookie and fill default-path
389def cookie.receive(host: String, req_path: String, c: Cookie) -> Cookie:
390 match c:
391 case Cookie{name, value, expires, max_age, domain, path, secure, http_only,
392 same_site, +host_only}:
393 Cookie{name, value, expires, max_age,
394 cookie.fill_domain(domain, host_only, String.to_lower(host)),
395 cookie.fill_path(path, req_path), secure, http_only, same_site,
396 host_only}
Uses (5)
Used by (0)
No other definition uses this definition.