summary refs log tree commit diff stats
path: root/lib/pure/uri.nim
Commit message (Collapse)AuthorAgeFilesLines
* Uri.isIpv6 exported (#20736)Juan Carlos2022-11-031-1/+1
| | | | | * Export Uri.isIpv6 * Export Uri.isIpv6
* Improve dollar (#20672)Juan Carlos2022-10-311-30/+49
| | | | | | | | | | | | | | | | | | | | | | | * Improve dollar for uri * Refactor * . * . * verde * optimize * https://github.com/nim-lang/Nim/pull/20672#issuecomment-1295440246 [skip ci] * https://github.com/nim-lang/Nim/pull/20670#issuecomment-1295937393 * ci * Update lib/pure/uri.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve getDataUri (#20670)Juan Carlos2022-10-311-4/+12
| | | | | | | * Improve getDataUri * Restart ci * https://github.com/nim-lang/Nim/pull/20670#issuecomment-1295937393
* bootstrap the compiler with nimPreviewSlimSystem (#20176)ringabout2022-08-091-0/+3
| | | | | * bootstrap the compiler with nimPreviewSlimSystem * threads
* Zectbumo fixes 19824 (#19825)Alfred Morgan2022-05-301-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * borrowed `$` to make Time string friendly * added sep character parameter * Revert "added sep character parameter" This reverts commit 45f4b019a4883b6ba577ade1f94677266beb5960. * added sep character parameter * Revert "borrowed `$` to make Time string friendly" This reverts commit 10e2e44c9a04970f38cf66556635bdbb50b69136. * added uri tests and made changelong entry * Update lib/pure/uri.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update lib/pure/uri.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update tests/stdlib/turi.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update tests/stdlib/turi.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* [docs] clarify the raised exception (#19308)flywind2022-01-031-4/+4
| | | | | | | | | | | * [docs] clarify the raised exception Lest developers wanna know what the exception is. * Apply suggestions from @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Revert "Update uri.nim (#19148) [backport:1.0]" (#19280)Andreas Rumpf2021-12-231-2/+0
| | | This reverts commit a3ef5df680e55d9bf68027fcb0ec6358b4279d09.
* Update uri.nim (#19148) [backport:1.0]Dominik Picheta2021-12-111-0/+2
|
* Revert "Fix parseUri to sanitize urls containing ASCII newline or tab ↵Andreas Rumpf2021-05-091-29/+3
| | | | | (#17967)" (#17984) This reverts commit f4dd95f3bee14b69caec63c3be984c4a75f43c8a.
* Fix parseUri to sanitize urls containing ASCII newline or tab (#17967)Beshr Kayali2021-05-091-3/+29
| | | | | | | | | | | | | | | | | | | * Fix parseUri to sanitize urls containing ASCII newline or tab * Fix ups based on review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Additional fix ups based on review - Avoid unnecessary `removeUnsafeBytesFromUri` call if parseUri is strict - Move some parseUri tests to uri module test file Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> * Update changelog Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* merge `initUri()` overloads, improve uri examples (#17970)Timothee Cour2021-05-081-30/+11
| | | | | | | * deprecate `uri.initUri` and improve uri examples * remove `func initUri*()` and make isIpv6 optional * fixup
* CIs: attempt to use csources_v1 (#16282)Andreas Rumpf2021-04-211-1/+1
| | | | | | | | * CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting
* start using import {.all.} (#17736)Timothee Cour2021-04-161-22/+0
|
* [std/uri]fix #17481 (#17568)flywind2021-03-291-1/+1
|
* uri: document removeDotSegments, add tests, show failure modes (#17064)Timothee Cour2021-02-201-1/+31
| | | | * uri: document removeDotSegments, add tests, show failure modes * address comments
* Fix bug in removeDotSegments when path ends with dot (#17038) [backport:1.2]Benoit Favre2021-02-151-1/+1
|
* uri module uses runnableExamples (#16982)flywind2021-02-091-50/+43
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-2/+2
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Improve uri.parseQuery to never raise an error (#16647)Mildred Ki'Lya2021-01-121-15/+23
| | | | | | | | | | | | | | | | | 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.
* follow #15357 and move decodeQuery (#15860)flywind2020-12-271-0/+43
| | | | | | | | | * follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
* [docs minor] remove unicode in docs comments (#16267)flywind2020-12-061-1/+1
|
* move decode_helpers to std/private (#16209)flywind2020-12-021-1/+1
|
* move tests to testament (#16101)flywind2020-11-241-285/+0
| | | | | | | | | * move tests to testament * minor * fix random * disable test random
* use func in uri module (#15486)flywind2020-10-051-26/+26
|
* fix #15333 (#15336)flywind2020-09-241-2/+26
|
* fix #14082, don't crash on incorrectly formatted input (#14977) [backport]Miran2020-07-171-11/+5
| | | | | | | * fix #14082, don't crash on incorrectly formatted input * address code review * remove duplication
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-1/+1
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* Add Data URI Base64, implements RFC-2397 (#13759)Juan Carlos2020-04-131-1/+35
| | | | | | | | | | | | | | | | | * Add Data URI Base64, implements RFC-2397 * Add Data URI Base64, implements RFC-2397 * Add Data URI Base64, implements RFC-2397 * https://github.com/nim-lang/Nim/pull/13759#issuecomment-611498420 * https://github.com/nim-lang/Nim/pull/13759#issuecomment-611498420 * ReSync changelog * https://github.com/nim-lang/Nim/pull/13759#issuecomment-611498420 Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* [backport] run nimpretty on web stuffnarimiran2019-09-301-9/+12
|
* run runnableExamples in the module scope (#11732) [feature]Timothee Cour2019-07-221-2/+2
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-1/+1
| | | | --styleCheck:error
* Add `encodeQuery` and `?` to Uri moduleLemonBoy2019-01-311-0/+56
|
* uri: Update documentation typo (#10471)Thomas T. Jarløv2019-01-271-4/+3
|
* docs: fix trailing comma in linksnarimiran2019-01-251-1/+1
|
* better docs: uri (#10373)Thomas T. Jarløv2019-01-191-35/+112
|
* Remove long deprecated stuff (#10332)Miran2019-01-181-27/+0
|
* Don't prevent ',' from getting escaped in theindex.htmlKaushal Modi2018-09-281-0/+1
| | | | | | - Enable escaping of links in theindex.html - Fixes https://github.com/nim-lang/Nim/issues/9107. - Second part of the fix for https://github.com/nim-lang/Nim/issues/9097.
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-5/+3
|
* Merges #7700 manually and adds decodePlus option to decodeUrl too.Dominik Picheta2018-05-031-15/+33
|
* uri.nim: don't rely on zero terminationAndreas Rumpf2018-04-291-21/+18
|
* Merge pull request #6597 from pgkos/uri-allow-no-authorityDominik Picheta2018-01-281-3/+11
|\ | | | | Allow parsing URIs without authority
| * Allow parsing URIs without authoritypgkos2017-10-251-4/+12
| |
* | Moved encodeUrl and decodeUrl from cgi to urlVeladus2017-11-251-0/+48
| |
* | Make Uri rendering more lenientFederico Ceratto2017-11-141-2/+35
| | | | | | | | | | When the hostname and path fields are set, handle missing or extra slashes to generate valid URLs.
* | more replacements for the deprecated '<'Andreas Rumpf2017-10-291-1/+1
|/
* Fixes issues with URI concatenation when URI has no path.Dominik Picheta2017-10-131-2/+11
|
* avoid deprecated procsAndreas Rumpf2017-07-261-1/+1
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-1/+1
|
* Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-021-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement dial, support IPv6 in httpclient Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``, ``asyncnet``. It merges socket creation, address resolution, and connection into single step. When using ``dial``, you don't have to worry about IPv4 vs IPv6 problem. Fixed addrInfo loop in connect to behave properly. Previously it would stop on first non-immediate failure, instead of continuing and trying the remaining addresses. Fixed newAsyncNativeSocket to raise proper error if socket creation fails. Fixes: #3811 * Check domain during connect() only on non-Windows This is how it was in the previous implementation of connect(). * Call 'osLastError' before 'close' in net.dial * Record osLastError before freeAddrInfo in net.dial * Add missing docs for 'dial' proc * Optimize dial to create one FD per domain, add tests And make async IPv6 servers work on Windows. * Add IPv6 test to uri module * Fix getAddrString error handling
* more isAbsolute tests for uri.nimenthus1ast2017-01-211-4/+32
| | | | Signed-off-by: enthus1ast <enthus1ast>