On this page:
Name
Value
Path  Or  Extension
Domain
9.0.0.5

1 Cookie Annotations🔗ℹ

 import: net/cookie package: rhombus-net-cookie-lib

The net/cookie provides annotations that are common to servers and user agents (i.e., clients).

annotation

cookie.Name

Recognizes cookie-name strings and byte strings (as valid UTF-8 encodings) that consist only of characters that are not control characters (see Char.is_iso_control), whitespace (see Char.is_whitespace), ", @, ?, (, ), [, ], {, }, ,, :, ;, =, <, >, /, or \.

annotation

cookie.Value

Recognizes cookie-value strings and byte strings that consist only of ASCII characters that are not control characters (see Char.is_iso_control), whitespace (see Char.is_whitespace), ", ,, ;, or \, except that " is allowed at the beginning and at the end of the string if it appears in both places.

annotation

cookie.PathOrExtension

Recognizes strings that can be used as the value of Path attribute accoridng to RFC 6265 or as an additional attribute (or attribute/value pair) whose meaning is not specified by RFC 6265.

annotation

cookie.Domain

Recognizes strings that contains a (sub)domain name as defined by RFC 1034 (Section 3.5) and RFC 1123.