Commit Graph

25 Commits

Author SHA1 Message Date
Dominik Picheta
1dc6caea6b Fixes issues with URI concatenation when URI has no path. 2017-10-13 20:10:54 +01:00
Andreas Rumpf
a3f80c4bdf avoid deprecated procs 2017-07-26 08:52:03 +02:00
Arne Döring
000b8afd26 Remove expr/stmt (#5857) 2017-07-25 09:28:23 +02:00
Ruslan Mustakov
ecf278c467 Implement dial, support IPv6 in httpclient (#5763)
* 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
2017-05-02 09:25:50 +02:00
enthus1ast
f2ce8eb372 more isAbsolute tests for uri.nim
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:54:38 +01:00
enthus1ast
46ac235715 added protocol-relative test to uri.nim
Signed-off-by: enthus1ast <enthus1ast>
2017-01-21 02:40:09 +01:00
enthus1ast
9626919cd3 added isAbsolute to uri.nim 2017-01-20 00:45:44 +01:00
Dominik Picheta
b2b2dcff08 Fixes #4959. 2016-10-26 21:26:48 +02:00
CORDEA
f77bc7d93a Fixed an wrong example of the doc 2016-03-02 20:55:02 +09:00
Dominik Picheta
d8a10457e2 Fixes #3207. 2015-09-28 23:04:17 +01:00
Dominik Picheta
193f248ea0 Fixes parsing of URIs that begin with '//'. 2015-08-23 18:22:37 +01:00
def
650a75beea Make uri module usable for faster URI parsing:
- 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
2015-03-17 19:39:02 +01:00
Dominik Picheta
bab8190b67 Fixes bugs introduced by ee62d56cad. Closes #2227. 2015-03-05 21:18:28 +00:00
Stephan Diehl
aa62dcc2af little documentation fix on conbine and / 2015-02-21 21:53:19 +01:00
def
e686ca2523 Fix a few more warnings 2015-02-17 02:22:30 +01:00
Guillaume Gelin
3119fe087d Happy new year! 2015-01-06 15:26:33 +01:00
def
76dbce275a Fix (u: Uri), add test cases and make it work for opaque URIs 2015-01-03 17:23:13 +01:00
Dominik Picheta
c0207dbae2 More deprecation warning fixes (asyncdispatch, uri). 2014-12-26 16:56:19 +00:00
Dominik Picheta
342ed97eed Fix some deprecation warnings in the uri module. 2014-12-26 16:30:37 +00:00
Araq
dcffbb052a big rename 2014-08-28 01:17:21 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Dominik Picheta
8968b5114f Fixes #1065. 2014-07-20 15:11:03 +01:00
Dominik Picheta
439569cfa3 Documentation for async httpclient. Notes for url modules. 2014-04-06 19:27:16 +01:00
Dominik Picheta
dfa1f7ce62 Removed echos from uri module. 2012-05-07 14:01:59 +02:00
dom96
cf87759e29 Added uri module. 2012-05-06 23:18:07 +01:00