Cookie.cookie.line: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie Lines 269-281 of emerging-ezhttp@0.21.0.0/src/cookie.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&start_line=269&end_line=281 import Base # Set-Cookie field value (RFC 6265 ยง4.1.1) def cookie.line(c: Cookie) -> String: match c: case Cookie{name, value, expires, max_age, domain, path, secure, http_only, same_site, host_only}: name ++ "=" ++ value ++ cookie.opt("; Expires=", expires) ++ cookie.opt("; Max-Age=", max_age) ++ cookie.domain_text(domain, host_only) ++ cookie.opt("; Path=", path) ++ cookie.mark("Secure", secure) ++ cookie.mark("HttpOnly", http_only) ++ cookie.opt("; SameSite=", same_site) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&name=Cookie https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&name=cookie.domain_text https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&name=cookie.mark https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cookie.bend&name=cookie.opt