From fd207827c5929ba5eb244dd2442457944a55b7d0 Mon Sep 17 00:00:00 2001 From: PhilippMDoerner Date: Wed, 18 Jan 2023 19:10:05 +0100 Subject: 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> --- lib/pure/httpclient.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/pure/httpclient.nim') diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index c832d4285..d2cf64149 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -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 ## =============== ## -- cgit 1.4.1-2-gfad0