| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Use runnableExamples in sugar
Remove unnecessary import
* Add trailing newline
* Address nits
* Remove unneccessary convolution
* Change wording
Co-authored-by: Clyybber <darkmine956@gmail.com>
|
|
|
|
|
|
|
| |
* make oids modules better
* Update lib/pure/oids.nim
* fix
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Improve marshal
Use runnableExamples
Refactor tests
* Readd {.inheritable.} test
Apply suggestions
|
| |
|
|
|
|
| |
(#16776) [backport:1.4]
|
|
|
|
|
|
|
|
|
| |
* initialize httpclient response bodyStream; prevent SIGSEGV when getBody is false
* Update lib/pure/httpclient.nim
* Update lib/pure/httpclient.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
| |
Move `downloadFileEx` out of `downloadFile` (solution, proposed by
@Yardanico).
Tested manually.
|
|
|
|
|
|
|
|
|
| |
* done
* Apply suggestions from code review
* fixup
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* Improve documentation for stats
* Address nits
* Update lib/pure/stats.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
|
| |
* Improve documentation for packedsets
Add more runnableExamples
Add deprecated pragma to intsets
Replace intsets with packedsets in lib.rst
* Apply suggested changes
|
| |
|
|
|
|
| |
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
|
|
|
|
|
|
|
| |
* Improve documentation for hashes
* Fix runnableExamples
* Apply suggestions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add tests and fix extra newlines in body
* Fixes per comments
* Slight rephrase per comments
* Improvements per comments
* Add getSocket to reduce test flakiness per comment
* Remove unused lines from header
* Add doc comment to getSocket per comment
* Apply witchcraft to replace `discard Future`
* Return HTTP 400 on bad encoding in request
* Fix runnable example for getSocket
* Fix import to fix runnable examples
* Even more imports for the example
* Better self documenting runnable example
* Add missing import
* Import from module with correct signature
* Resolve port type mismatch
|
|
|
|
|
| |
* Fixes #16436
* Comments addressed
|
| |
|
|
|
|
|
| |
* Check for errors after sendPendingSslData
* Leftover comment removed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In case of malformed query string where there is `=` on the value, handle
this character as part of the value instead of throwing an error.
The following query string should no longer crash a program:
key=value&key2=x=1
It will be interpreted as [("key", "value"), ("key2", "x=1")]
This is correct according to latest WhatWG's HTML5 specification
recarding the urlencoded parser:
https://url.spec.whatwg.org/#concept-urlencoded-parser
Older behavior can be restored using the -d:nimLegacyParseQueryStrict
flag.
|
| |
|
|
|
| |
Simplify examples
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Allow passing Uri instead of strings
* Teach httpclient about 308
* Deprecate request proc where httpMethod is string
* More use of HttpMethod enum
Also fix handling of 308, I forgot to add the hunk to the previous
commit.
* Well behaved redirect handler
* Also remove Transfer-Encoding
* Removed unused proc
* Secure redirection rules
Strip sensitive headers for cross-domain redirects.
* Allow httpMethod to be a string again
This way unknown http verbs can be used without any problem.
* Respect user-specified Host header
* Missed multipart argument.
* Try another method
* add changelog
* Fix hidden deprecation warning, parseEnum failing
* This is wrong
* Have to do it manually, parseEnum is not suitable
* Review comments
* update
Co-authored-by: LemonBoy <thatlemon@gmail.com>
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
|
|
|
|
|
|
|
|
|
| |
* Add support for Transfer-Encoding: chunked
* Minor whitespace fixes
* Use recv instead of recvLineInto
* Undo changes to httpcore, inline changes
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* DELETE requests should always have a content-length header
Not having DELETE in this list is causing hanging when trying to close webdriver sessions in [halonium](https://github.com/halonium/halonium/issues/10) and likely any other implementation of the webdriver protocol. Both at least chromedriver and geckodriver are affected by this issue.
* Change the content length calculation to match the http spec
For reference:
https://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#Entity-Body
|
| |
|
|
|
|
|
|
|
| |
* switch from PRNG to random module
* fix the regression
* comments + tests
* runnableExamples
* make oids better
|
| |
|
|
|
|
|
| |
I dislike this example a lot (busy looping for FDs to be closed is a very
poor waste of resources) but at least with these changes it's a little bit
better.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* make cstrutils work in VM
* more
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Improve documentation for complex
Add missing doc comments
* Add runnableExample
Add links for principal values
Optimize `-`
Change var to let
* Use std prefix for imports
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix #9125
* Update tests/stdlib/tmath.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* back
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
|
|
|
|
|
|
|
| |
* remove duplication in asynchttpserver examples
* fixup
* add comment showing how to run snippet locally
|
|
|
| |
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
|
|
|
| |
* Add backwards index overload for `[]` for JsonNode
* Add since
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Add docs, example, and changelog
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
|
|
|
|
|
|
|
| |
* Improve sequtils documentation
Uncomment assertions in tests
* Use present tense
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Improve documentation for algorithm
Remove unused import in algorithm tests
Improve formatting
* Reapply fix for reverse on empty openArray
* Use 3rd person singular
Add more explanations.
|
| |
|
|
|
| |
* fix #16542
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Allow single alloc mimetypes ops
* Allow single alloc mimetypes ops
* Update lib/pure/mimetypes.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190
* https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190
* https://github.com/nim-lang/Nim/pull/16480#issuecomment-753349661
* update changelog
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
| |
* Link Testament from unittest doc
* Update lib/pure/unittest.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
|