diff options
author | metagn <metagngn@gmail.com> | 2022-12-06 11:37:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 09:37:03 +0100 |
commit | 739e1badb6e48741e28420739769d3714ac6ceda (patch) | |
tree | 745718d54a61118535ae657ec884dc5bee6d83a6 /lib/std/jsfetch.nim | |
parent | 5d469686b05ba0435690fccf6fb6f7d95cf09c73 (diff) | |
download | Nim-739e1badb6e48741e28420739769d3714ac6ceda.tar.gz |
stdlib organization & documentation improvements (#20971)
* stdlib organization & documentation improvements * fix CI * Update doc/lib.md Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * fix ci, remove jshttpcore, export in jsfetch instead * fix alphabetical order violations * add cmdline, db_odbc Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Diffstat (limited to 'lib/std/jsfetch.nim')
-rw-r--r-- | lib/std/jsfetch.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/std/jsfetch.nim b/lib/std/jsfetch.nim index 988414258..219594619 100644 --- a/lib/std/jsfetch.nim +++ b/lib/std/jsfetch.nim @@ -2,7 +2,8 @@ when not defined(js): {.fatal: "Module jsfetch is designed to be used with the JavaScript backend.".} -import std/[asyncjs, jsheaders, jsformdata] +import std/[asyncjs, jsformdata, jsheaders] +export jsformdata, jsheaders from std/httpcore import HttpMethod from std/jsffi import JsObject @@ -116,7 +117,7 @@ func `$`*(self: Request | Response | FetchOptions): string = $toCstring(self) runnableExamples("-r:off"): - import std/[asyncjs, jsconsole, jsheaders, jsformdata] + import std/[asyncjs, jsconsole, jsformdata, jsheaders] from std/httpcore import HttpMethod from std/jsffi import JsObject from std/sugar import `=>` |