summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Fix handle of error only events.cheatfate2016-10-161-2/+2
|
* Bugfix for times.initInterval (issue #4889)Jonathan Bernard2016-10-121-8/+8
| | | | | | | | | | | | | | | | | | | | | | | `initInterval` had logic to calculate and carry overflowed fields (65 seconds turns into 5 seconds and carries 1 minute). However, we were not including that carried value when we recalculate the carry over for the next period of time.So if you had, for example, 3600 seconds, we carried 60 minutes into the minutes calculation, but when we calculated how much we should carry into the hours value we only considered what the user originally supplied for the minutes field, and forgot to include those 60 carried minute. So, for example, with the previous implementation this was true: `seconds(60 * 60 * 24) == seconds(0)` Or, as failing tests: ```nimrod import times assert seconds(60 * 60 * 24) != seconds(0) assert seconds(60 * 60 * 24) == days(1) ```
* Add example for posting json contentAlpha Shuro2016-10-121-0/+14
| | | i struggled to figure out how to post json content with nim's http client. this is a fundamental capability in many web apps, we don't always need to send data as multipart form data (e.g. when communicating via json apis) so frankly i'm surprised it isn't part of the "post" and "postContent" procs
* Merge pull request #4828 from jfhg/unify_waitpid_handlingAndreas Rumpf2016-10-091-32/+36
|\ | | | | Unify waitpid handling
| * convert exitStatus to exit codeJohannes Hofmann2016-09-301-3/+3
| |
| * Merge branch 'devel' into unify_waitpid_handlingJohannes Hofmann2016-09-3013-377/+622
| |\
| * | another attempt at properly declaring the status variableJohannes Hofmann2016-09-251-1/+3
| | |
| * | make status variable localJohannes Hofmann2016-09-251-2/+1
| | |
| * | Merge branch 'devel' into unify_waitpid_handlingJohannes Hofmann2016-09-244-11/+79
| |\ \
| * | | rename exitCode to exitStatusJohannes Hofmann2016-09-241-18/+18
| | | |
| * | | generally update exitCode only after successful completion of waitpid()Johannes Hofmann2016-09-221-23/+26
| | | |
* | | | fixes #4844Araq2016-10-081-1/+5
| | | |
* | | | Fixes pesky hint in asyncfutures.Dominik Picheta2016-10-011-0/+2
| | | |
* | | | made test green for 32bit systemAraq2016-09-301-12/+14
| | | |
* | | | made test green for 32bit systemAraq2016-09-301-1/+1
| |_|/ |/| |
* | | Add few JSON examplesFederico Ceratto2016-09-291-0/+2
| | |
* | | made async compile againAndreas Rumpf2016-09-262-1/+1
| | |
* | | revert brainless changesAndreas Rumpf2016-09-261-2/+2
| | |
* | | make travis greenAndreas Rumpf2016-09-261-2/+2
| | |
* | | docgen fixes for basic3dAndreas Rumpf2016-09-261-4/+2
| | |
* | | docgen fixes for selectors.nimAndreas Rumpf2016-09-261-1/+2
| | |
* | | docgen fixes for basic2dAndreas Rumpf2016-09-261-2/+2
| | |
* | | Fixes #4587.Dominik Picheta2016-09-251-2/+19
| | |
* | | Moves async futures into asyncfutures module.Dominik Picheta2016-09-252-293/+294
| | |
* | | FutureVar[T] parameters are now completed automatically.Dominik Picheta2016-09-252-17/+64
| | |
* | | Merge branch 'asyncftp-add-removeDir' of https://github.com/pyloor/Nim into ↵Dominik Picheta2016-09-251-0/+6
|\ \ \ | | | | | | | | | | | | pyloor-asyncftp-add-removeDir
| * | | Asyncftpclient: adding removeDir procpyloor2016-09-211-0/+6
| |/ /
* | | Merge branch 'asyncftp-add-removeFile' of https://github.com/pyloor/Nim into ↵Dominik Picheta2016-09-251-0/+6
|\ \ \ | | | | | | | | | | | | pyloor-asyncftp-add-removeFile
| * | | adding a test for removing a filepyloor2016-09-211-0/+2
| | | |
| * | | adding removeFile proc to asyncftpclientpyloor2016-09-211-0/+4
| |/ /
* | | Fixes #3847.Dominik Picheta2016-09-254-10/+52
| | |
* | | Add PATCH HTTP Method.Dominik Picheta2016-09-251-3/+2
| | |
* | | asynchttpserver's Response object's req method uses HttpMethod now.Dominik Picheta2016-09-253-15/+20
| | | | | | | | | | | | Fixes #4423.
* | | HTTP client's request proc no longer slices http method string param.Dominik Picheta2016-09-251-4/+5
| | |
* | | Improves httpclient documentation.Dominik Picheta2016-09-241-32/+51
| | |
* | | Implements onProgressChanged callback for httpclient.Dominik Picheta2016-09-241-11/+51
| | |
* | | Deprecates old httpclient procedures.Dominik Picheta2016-09-241-6/+22
| | |
* | | Implements getContent and postContent for (Async)HttpClient.Dominik Picheta2016-09-241-1/+36
| | |
* | | Handle redirects in HttpClient's post procs & post test.Dominik Picheta2016-09-241-0/+10
| |/ |/|
* | Merge pull request #4815 from pyloor/asyncftp-add-renameDominik Picheta2016-09-241-0/+7
|\ \ | | | | | | Asyncftpclient: adding rename proc
| * | adding rename proc to asyncftpclientpyloor2016-09-211-0/+7
| |/
* | Add support for kqueue's EVFILT_VNODE (filesystem monitoring), and add test ↵cheatfate2016-09-242-9/+68
| | | | | | | | for it.
* | Fixed missing commaAndrea Ferretti2016-09-221-1/+1
| |
* | Added PATCH HTTP methodAndrea Ferretti2016-09-211-1/+3
|/
* HttpCode shouldn't require explicit initialisation to prevent breakage.Dominik Picheta2016-09-191-1/+3
|
* Reverted removal of HttpCode.`$`.Dominik Picheta2016-09-191-2/+2
|
* Fixes `asyncmacro` compilation in tests.Dominik Picheta2016-09-191-2/+1
|
* Use `distinct range` for HttpCode as suggested by @nigredo-tori.Dominik Picheta2016-09-192-55/+118
|
* Fixes #4797.Dominik Picheta2016-09-191-0/+3
|
* Implements proxy support for (Async)HttpClient. Ref #4423.Dominik Picheta2016-09-182-18/+78
| | | | Fixes #2160.