diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2017-10-20 18:24:17 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2017-10-20 18:24:17 +0100 |
commit | bfae7bfe8335267bd5d84b5b252382b5321d7c6d (patch) | |
tree | 7f8d6ea6d640245b7844470c203300b61cd31624 /lib | |
parent | 1a0032eb6875c58ec1b64e9d98240e43cef04b91 (diff) | |
download | Nim-bfae7bfe8335267bd5d84b5b252382b5321d7c6d.tar.gz |
Add `$` for HttpHeaders.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/httpcore.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/pure/httpcore.nim b/lib/pure/httpcore.nim index a5ab40ca4..f150fa1c1 100644 --- a/lib/pure/httpcore.nim +++ b/lib/pure/httpcore.nim @@ -113,6 +113,9 @@ proc newHttpHeaders*(keyValuePairs: new result result.table = newTable[string, seq[string]](pairs) +proc `$`*(headers: HttpHeaders): string = + return $headers.table + proc clear*(headers: HttpHeaders) = headers.table.clear() |