mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-03 11:42:33 +00:00
improve httpclient docuementation (#24398)
ref https://github.com/nim-lang/Nim/issues/24394
(cherry picked from commit 08b82c90f5)
This commit is contained in:
@@ -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))
|
||||
## ```
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user