mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 08:51:21 +00:00
Add docs informing about gotcha of clients (#21262)
* Add docs informing about gotcha of clients It is a hidden problem that AsyncHttpClient-instances *can not* deal with multiple requests at once. Similar to normal HttpClients they can only deal with sending one request at a time. This is not told anywhere in the documentation, but critical information that should be available to the user. * Update lib/pure/httpclient.nim fixes typo Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
## **Note:** You need to run asynchronous examples in an async proc
|
||||
## otherwise you will get an `Undeclared identifier: 'await'` error.
|
||||
##
|
||||
## **Note:** An asynchronous client instance can only deal with one
|
||||
## request at a time. To send multiple requests in parallel, use
|
||||
## multiple client instances.
|
||||
##
|
||||
## Using HTTP POST
|
||||
## ===============
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user