improve httpclient docuementation (#24398)

ref https://github.com/nim-lang/Nim/issues/24394

(cherry picked from commit 08b82c90f5)
This commit is contained in:
ringabout
2024-11-02 00:01:45 +08:00
committed by narimiran
parent 5e22d8bc3c
commit 37ab27bd99

View File

@@ -62,6 +62,7 @@
## validated to the server.
##
## ```Nim
## import std/[httpclient]
## var client = newHttpClient()
## var data = newMultipartData()
## data["output"] = "soap12"
@@ -79,6 +80,7 @@
## it, you can pass your own via the `mimeDb` parameter to avoid this.
##
## ```Nim
## import std/[httpclient, mimetypes]
## let mimes = newMimetypes()
## var client = newHttpClient()
## var data = newMultipartData()
@@ -160,7 +162,7 @@
## Example of setting SSL verification parameters in a new client:
##
## ```Nim
## import httpclient
## import std/[net, httpclient]
## var client = newHttpClient(sslContext=newContext(verifyMode=CVerifyPeer))
## ```
##