summary refs log tree commit diff stats
path: root/lib/pure/uri.nim
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* added protocol-relative test to uri.nimenthus1ast2017-01-211-1/+3
| | | | Signed-off-by: enthus1ast <enthus1ast>
* added isAbsolute to uri.nimenthus1ast2017-01-201-0/+15
|
* Fixes #4959.Dominik Picheta2016-10-261-0/+10
|
* Fixed an wrong example of the docCORDEA2016-03-021-3/+3
|
* Fixes #3207.Dominik Picheta2015-09-281-0/+10
|
* Fixes parsing of URIs that begin with '//'.Dominik Picheta2015-08-231-7/+20
|
* Make uri module usable for faster URI parsing:def2015-03-171-10/+23
| | | | | | - A version of parseUri that takes a uri as parameter and modifies it - Export initUri so you can use the new parseUri better - Avoid creating new strings
* Fixes bugs introduced by ee62d56cadb. Closes #2227.Dominik Picheta2015-03-051-0/+10
|
* little documentation fix on conbine and /Stephan Diehl2015-02-211-4/+4
|
* Fix a few more warningsdef2015-02-171-0/+2
|
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|
* Fix (u: Uri), add test cases and make it work for opaque URIsdef2015-01-031-14/+35
|