object

http_cookies(Representation)

  • Representation - Cookie header representation. Valid values are atom, chars, and codes.

HTTP Cookie and Set-Cookie header parsing and generation predicates implementing RFC 6265 syntax.

Availability:
logtalk_load(http_cookies(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-06-27
Compilation flags:
static, context_switching_calls
Uses:
Remarks:
  • Cookie header pairs: Cookie header values are represented as Name-Value pairs.

  • Set-Cookie components: Set-Cookie header values are represented by a cookie name, a cookie value, and an attribute list where attributes use Key-Value notation such as expires-date_time(Year, Month, Day, Hours, Minutes, Seconds), max_age-Seconds, domain-Domain, path-Path, secure-true, http_only-true, same_site-lax, partitioned-true, priority-high, and extension-Attribute.

  • Extension attributes: Unknown Set-Cookie attributes are preserved verbatim as extension-Attribute pairs as long as they do not use a reserved RFC 6265 attribute name.

  • Expires attribute: The Expires attribute value is normalized to a date_time(Year, Month, Day, Hours, Minutes, Seconds) term and generated back using the canonical HTTP-date representation.

Inherited public predicates:
(none)

Public predicates


Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)