Documentation for async httpclient. Notes for url modules.
This commit is contained in:
parent
b23dce03a1
commit
439569cfa3
3 changed files with 43 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue