Module cookies

This module implements helper procs for parsing Cookies.

Procs

proc parseCookies(s: string): PStringTable {.raises: [], tags: [].}
parses cookies into a string table.
proc setCookie(key, value: string; domain = ""; path = ""; expires = ""; 
               noName = false): string {.raises: [], tags: [].}
Creates a command in the format of Set-Cookie: key=value; Domain=...; ...
proc setCookie(key, value: string; expires: TTimeInfo; domain = ""; path = ""; 
               noName = false): string {.raises: [EInvalidValue], tags: [].}

Creates a command in the format of Set-Cookie: key=value; Domain=...; ...

Note: UTC is assumed as the timezone for expires.

Generated: 2014-03-11 21:26:52 UTC