Procs
proc parseCookies*(s: string): PStringTable
- parses cookies into a string table.
proc setCookie*(key, value: string; domain = ""; path = ""; expires = ""; noName = false): string
- Creates a command in the format of Set-Cookie: key=value; Domain=...; ...
proc setCookie*(key, value: string; expires: TTimeInfo; domain = ""; path = ""; noName = false): string
-
Creates a command in the format of Set-Cookie: key=value; Domain=...; ...
Note: UTC is assumed as the timezone for expires.