summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2017-10-20 18:24:17 +0100
committerDominik Picheta <dominikpicheta@gmail.com>2017-10-20 18:24:17 +0100
commitbfae7bfe8335267bd5d84b5b252382b5321d7c6d (patch)
tree7f8d6ea6d640245b7844470c203300b61cd31624 /lib
parent1a0032eb6875c58ec1b64e9d98240e43cef04b91 (diff)
downloadNim-bfae7bfe8335267bd5d84b5b252382b5321d7c6d.tar.gz
Add `$` for HttpHeaders.
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/httpcore.nim3
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()