summary refs log tree commit diff stats
path: root/lib/pure/cookies.nim
Commit message (Collapse)AuthorAgeFilesLines
* move tests to testament (#16101)flywind2020-11-241-15/+0
| | | | | | | | | * move tests to testament * minor * fix random * disable test random
* make more tests greenAndreas Rumpf2018-04-301-5/+5
|
* Don't assume UTC in cookies.setCookieOscar Nihlgård2018-04-031-12/+12
|
* Better times module (#6552)GULPF2017-12-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First work on better timezones * Update tests to new api. Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead). * Deprecate getLocaltime & getGmTime * Add `now()` as a shorthand for GetTIme().inZone(Local) * Add FedericoCeratto's timezone tests (#6548) * Run more tests in all timezones * Make month enum start at 1 instead of 0 * Deprecate getDayOfWeekJulian * Fix issues with gc safety * Rename TimeInfo => DateTime * Fixes #6465 * Improve isLeapYear * FIx handling negative adjTime * Cleanup: - deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float) - added missing doc comments - removed some unnecessary JS specific implementations * Fix misstake in JS `-` for Time * Update usage of TimeEffect * Removed unecessary use of `difftime` * JS fix for local tz * Fix subtraction of months * Fix `days` field in `toTimeInterval` * Style and docs * Fix getDayOfYear for real this time... * Fix handling of adding/subtracting time across dst transitions * Fix some bad usage of the times module in the stdlib * Revert to use proper time resoultion for seeding in random.nim * Move deprecated procs to bottom of file * Always use `epochTime` in `randomize` * Remove TimeInterval normalization * Fixes #6905 * Fix getDayOfWeek for year < 1 * Export toEpochDay/fromEpochDay and change year/month/monthday order * Add asserts for checking that the monthday is valid * Fix some remaining ambiguous references to `Time` * Fix ambiguous reference to Time
* Update docs of cookies.parseCookies. Closes #5721.Dominik Picheta2017-11-181-0/+9
|
* Merge pull request #5720 from FedericoCeratto/patch-27Dominik Picheta2017-04-171-1/+1
|\ | | | | Fix cookie timestamp format #5718
| * Fix cookie timestamp format #5718Federico Ceratto2017-04-171-1/+1
| | | | | | See https://tools.ietf.org/html/rfc6265
* | Fix "secure" capitalizationFederico Ceratto2017-04-171-1/+1
|/ | | See https://tools.ietf.org/html/rfc6265
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-5/+5
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* Turn some test outputs into actual testsOleh Prypin2015-04-211-3/+9
|
* Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+1
|
* merged things from develAraq2014-09-121-9/+11
|\
| * Secure and HttpOnly cookiesErwan Ameil2014-08-301-6/+9
| |
* | big renameAraq2014-08-271-4/+4
| |
* | renamefestAraq2014-08-231-2/+2
|/
* Removes executable bit for text files.Grzegorz Adam Hankiewicz2013-03-161-0/+0
|
* Fixed a bug in times and finished its docs. Added mimetypes module and added ↵dom962012-05-131-1/+1
| | | | the uri module to the doc gen. Fixed a bug in the cookies module.
* Added a format function to the times module and a setCookie function to the ↵dom962012-04-261-1/+30
| | | | cookies module.
* year 2012 for most copyright headersAraq2012-01-021-1/+1
|
* deprecated system.copy: use system.substr insteadAraq2011-05-141-2/+2
|
* non-nil AST; continue after errors for IDE supportAraq2011-02-121-0/+0
|
* docgen understands and ignores *when false*Araq2010-11-181-0/+30