# Module cookies

This module implements helper procs for parsing Cookies.

# Imports

strtabs, times

# 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: 2013-05-21 09:55:22 UTC