Documentation for async httpclient. Notes for url modules.

This commit is contained in:
Dominik Picheta 2014-04-06 19:27:16 +01:00
commit 439569cfa3
3 changed files with 43 additions and 5 deletions

View file

@ -1,11 +1,15 @@
#
#
# Nimrod's Runtime Library
# (c) Copyright 2012 Dominik Picheta
# (c) Copyright 2014 Dominik Picheta
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
## **Note**: This module will be deprecated in the future and merged into a
## new ``url`` module.
import strutils
type
TUrl* = distinct string
@ -30,4 +34,4 @@ proc add*(url: var TUrl, a: TUrl) =
url = url / a
when isMainModule:
assert($("http://".TUrl / "localhost:5000".TUrl) == "http://localhost:5000")
assert($("http://".TUrl / "localhost:5000".TUrl) == "http://localhost:5000")