Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move since from inclrtl to std/private/since (#14188) | hlaaftana | 2020-05-02 | 1 | -1/+1 |
| | | | | * move since from inclrtl to std/private/since * move since import in system below for HCR | ||||
* | Error -> Defect for defects (#13908) | Jacek Sieka | 2020-04-28 | 1 | -3/+3 |
| | | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here. | ||||
* | New runnableExample for `newAsyncHttpClient()` (#14045) | Tristram Oaten | 2020-04-21 | 1 | -0/+11 |
| | |||||
* | Fix broken async httpclient example | Tristram Oaten | 2020-04-21 | 1 | -3/+7 |
| | | | | | | | | | | | | | | | | | As the async httpclient is almost certainly the first async example beginners will want to try, we OWE it to them to give them a real example. Example repeated here for clarity: ```nim import asyncdispatch, httpclient proc asyncProc(): Future[string] {.async.} = var client = newAsyncHttpClient() return await client.getContent("http://example.com") echo waitFor asyncProc() ``` This is my first Nim contribution, please let me know if the code is right. (it runs on my machine, but may not be the best example) | ||||
* | fix #13894, httpclient hang on Http204 | narimiran | 2020-04-07 | 1 | -1/+1 |
| | |||||
* | SSL certificate verify GitHub action (#13697) | Federico Ceratto | 2020-03-20 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement SSL/TLS certificate checking #782 * SSL: Add nimDisableCertificateValidation Remove NIM_SSL_CERT_VALIDATION env var tests/untestable/thttpclient_ssl.nim ran successfully on Linux with libssl 1.1.1d * SSL: update integ test to skip flapping tests * Revert .travis.yml change * nimDisableCertificateValidation disable imports Prevent loading symbols that are not defined on older SSL libs * SSL: disable verification in net.nim ..when nimDisableCertificateValidation is set * Update changelog * Fix peername type * Add define check for windows * Disable test on windows * Add exprimental GitHub action CI for SSL * Test nimDisableCertificateValidation | ||||
* | Implement file streaming for httpclient's MultipartData (#12982) | Zed | 2020-03-06 | 1 | -147/+211 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `uploadFile` to POST files by streaming them * Use constant for \c\L * Formatting * Remove uploadFile * Implement MultipartData file streaming * Remove unnecessary var annotations * Call string on TaintedStrings Fixes #12789 * Move cl constant to httpcore * Fix `request` inconsistencies * Update documentaion * Clean up * Skip multipart formatting when there's 0 entries * Remove extraneous `cl` from multipart formatting * Update MultipartData `$` to match old behaviour * Update comment * Address comments | ||||
* | httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add ↵ | Juan Carlos | 2020-01-21 | 1 | -5/+9 |
| | | | | headers argument instead of hardcoded empty (#13207) | ||||
* | Added fix for handling TaintedStrings in streams and httpclient (#12969) | Sam Wang | 2019-12-29 | 1 | -4/+4 |
| | | | | | | * Added fix for taint mode in streams and httpclient * Removed taintMode export from system.nim | ||||
* | Allow customize Host header | Jack Tang | 2019-12-28 | 1 | -4/+5 |
| | |||||
* | fix httpclient.lastModified bad pattern in parsing (#12698) | Pierre-Jean Grenier | 2019-11-29 | 1 | -1/+1 |
| | |||||
* | [backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. ↵ | 3n-k1 | 2019-11-28 | 1 | -3/+3 |
| | | | | (#12754) | ||||
* | replace some runtime repr in stdlib for gc:arc (#12716) | Andy Davidoff | 2019-11-25 | 1 | -1/+1 |
| | |||||
* | fixes #11863 multipart data need $ (#12707) | Andreas Rumpf | 2019-11-22 | 1 | -0/+13 |
| | | | | | * fixes #11863 * improved the code; refs #12412 | ||||
* | About 50% faster base64 implemention. (#12436) | treeform | 2019-10-17 | 1 | -1/+1 |
| | |||||
* | [backport] run nimpretty on web stuff | narimiran | 2019-09-30 | 1 | -13/+14 |
| | |||||
* | Revert "improvements for httpcore (#12228)" | narimiran | 2019-09-23 | 1 | -4/+4 |
| | | | | This reverts commit b865c2a54b7d706b31b5eba29dfdbb16809aa400. | ||||
* | improvements for httpcore (#12228) | Andreas Rumpf | 2019-09-23 | 1 | -4/+4 |
| | | | | | * improvements for httpcore * further improvements, now stable API but needs extensions later on | ||||
* | Remove old and unused parseBody/parseResponse procs in httpclient. (#11949) | Dominik Picheta | 2019-08-26 | 1 | -130/+2 |
| | |||||
* | Fixes regression introduced by #11904. (#11948) | Dominik Picheta | 2019-08-15 | 1 | -2/+4 |
| | |||||
* | Fix issue #10726 - HTTP response without Content-Length is not accessible ↵ | konradmb | 2019-08-08 | 1 | -2/+8 |
| | | | | | | | | | | | | (#11904) * Add patch by @xenogenesi * Async test for HTTP/1.1 without Content-Length * Apply suggestions from code review Co-Authored-By: Dominik Picheta <dominikpicheta@googlemail.com> | ||||
* | Use std/monotimes in the stdlib | Oscar Nihlgård | 2019-07-16 | 1 | -5/+5 |
| | |||||
* | make more parts of the stdlib compile with --styleCheck:error | Araq | 2019-07-10 | 1 | -14/+14 |
| | |||||
* | [documentation] fix #11281, httpclient examples (#11455) | Juan Carlos | 2019-06-10 | 1 | -1/+48 |
| | |||||
* | added getSocket proc (#11233) | Boris Shomodjvarac | 2019-05-15 | 1 | -0/+15 |
| | |||||
* | Fixes #10357 (#10618) | Juan Carlos | 2019-02-13 | 1 | -1/+1 |
| | |||||
* | Updated httpClient.nim: added import httpClient statements in examples | Mandeep Singh | 2019-01-26 | 1 | -0/+2 |
| | | | Added import httpClient statements in examples, as it was not obvious for a new started from python regarding what to import | ||||
* | Remove long deprecated stuff (#10332) | Miran | 2019-01-18 | 1 | -243/+0 |
| | |||||
* | Merge pull request #9548 from tonygparsehub/put-delete | Dominik Picheta | 2018-11-23 | 1 | -42/+78 |
|\ | | | | | fix #8777 add missing http methods in httpClient | ||||
| * | fix #8777 add missing http methods in httpClient | Tony G | 2018-10-30 | 1 | -42/+78 |
| | | |||||
* | | removes deprecated T/P types | Araq | 2018-11-16 | 1 | -3/+1 |
|/ | |||||
* | fixes #7842 if no uri.scheme specified raise ValueError with hint (#7846) | David Krause | 2018-10-27 | 1 | -0/+3 |
| | | | | | | | | * fixes #7842 if no uri.scheme specified on request rais ValueError with hint Signed-off-by: enthus1ast <david@code0.xyz> * Update httpclient.nim | ||||
* | even more strict isNil handling for strings/seqs in order to detect bugs | Araq | 2018-08-22 | 1 | -2/+2 |
| | |||||
* | fixes more nil handling regressions | Araq | 2018-08-13 | 1 | -7/+7 |
| | |||||
* | make more tests green | Andreas Rumpf | 2018-08-13 | 1 | -1/+1 |
| | |||||
* | AsyncHttpClient: return from requests before body completion | Emery Hemingway | 2018-08-08 | 1 | -2/+13 |
| | | | | | | | | | Store the body completion future at the client and wait for it to complete before issuing additional requests. This allows the body FutureStream reader to drain the stream and read buffers to be freed asynchronously. Fix #8109 | ||||
* | Minor doc fix | Federico Ceratto | 2018-06-23 | 1 | -1/+1 |
| | |||||
* | hotfix: fixes SSL initialization for httpclient with --threads:on (#7863) | Andreas Rumpf | 2018-05-22 | 1 | -20/+18 |
| | | | | * hotfix: fixes SSL initialization for httpclient with --threads:on | ||||
* | remove deprecated stuff from the stdlib; introduce better deprecation warnings | Araq | 2018-05-05 | 1 | -11/+5 |
| | |||||
* | Fixes crash in httpclient due to new string indexing rules. | Dominik Picheta | 2018-05-04 | 1 | -1/+1 |
| | |||||
* | make httpclient work without zero terminators | Andreas Rumpf | 2018-04-29 | 1 | -7/+3 |
| | |||||
* | fix #7680 (#7683) | hlaaf | 2018-04-26 | 1 | -3/+6 |
| | | | | | | | | | | * fix #7680 * Don't send on every HTTP method * These should be squashed * 80 column limit | ||||
* | Improve progress reporting example. Refs #7693 | Dominik Picheta | 2018-04-25 | 1 | -3/+8 |
| | |||||
* | copy pastable progress reporting example | David Krause | 2018-04-25 | 1 | -1/+2 |
| | |||||
* | Call requestAux not request in httpclient. | Dominik Picheta | 2018-04-07 | 1 | -1/+1 |
| | |||||
* | fixes httpclient documentation comment | Araq | 2018-03-12 | 1 | -1/+1 |
| | |||||
* | Improve SSL error message in httpclient. | Dominik Picheta | 2018-02-22 | 1 | -5/+6 |
| | |||||
* | Merges #7226 manually. | Dominik Picheta | 2018-02-19 | 1 | -0/+25 |
| | |||||
* | Workaround 'defer' issue in httpclient.downloadFile. Refs #3877. (#7101) | Dominik Picheta | 2018-01-18 | 1 | -13/+32 |
| | |||||
* | Fixed crash in ssl httpclient | Yuriy Glukhov | 2018-01-11 | 1 | -3/+9 |
| |