summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorKonstantin Molchanov <moigagoo@live.com>2016-05-28 10:25:36 +0400
committerKonstantin Molchanov <moigagoo@live.com>2016-05-28 10:25:36 +0400
commit6075bd4231e70545907f0a8d5165c5960909ad32 (patch)
tree861543c8521602d83fdca82093908a975bbe87f5 /lib
parent0134a51a7c05ade512c51eb8886421f383537bd0 (diff)
downloadNim-6075bd4231e70545907f0a8d5165c5960909ad32.tar.gz
Stdlib: httpclient: `export strtabs` added.
When using `httpclient`, viewing HTTP headers is impossible without importing `strtabs`, which is very much _not_ obvious; it's impossible to know without deep diving into the docs.

Dealing with headers is an essential part of working with HTTP in general, so I propose this change. The situation is analogous to this one with `nre` and `options`: https://github.com/nim-lang/Nim/issues/4158
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/httpclient.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim
index f473e47d1..040ce10da 100644
--- a/lib/pure/httpclient.nim
+++ b/lib/pure/httpclient.nim
@@ -83,6 +83,8 @@ import net, strutils, uri, parseutils, strtabs, base64, os, mimetypes, math
 import asyncnet, asyncdispatch
 import nativesockets
 
+export strtabs
+
 type
   Response* = tuple[
     version: string,