Skip to content

Commit

Permalink
improve httpclient docuementation (#24398)
Browse files Browse the repository at this point in the history
ref #24394
  • Loading branch information
ringabout authored Nov 1, 2024
1 parent 8b88b5f commit 08b82c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pure/httpclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
## validated to the server.
##
## ```Nim
## import std/[httpclient]
## var client = newHttpClient()
## var data = newMultipartData()
## data["output"] = "soap12"
Expand All @@ -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()
Expand Down Expand Up @@ -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))
## ```
##
Expand Down

0 comments on commit 08b82c9

Please sign in to comment.