DenoDDeno
Powered by
vukmeanswolfV
Denoβ€’3y agoβ€’
1 reply
vukmeanswolf

Proper usage of `Deno.HttpClient`

Hi! I'm creating an application which allows the internal use of HTTP proxies for certain tasks.
In that case,
fetch()
fetch()
requests are given an instance of
Deno.HttpClient
Deno.HttpClient
per proxy, but for multiple
fetch()
fetch()
calls, if they're supposed to use the same proxy, the same
HttpClient
HttpClient
instance is used.
This is something I am curious about, should I create a new
HttpClient
HttpClient
for every executed
fetch()
fetch()
, or is it fine to reuse the same
HttpClients
HttpClients
for multiple requests?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Usage of Deno.Command?
RoXuSRRoXuS / help
3y ago
deno_core usage
KyiroKKyiro / help
3y ago
How to debug usage of deno_core?
quentusrexQquentusrex / help
2y ago
Proper way to install deno on NixOS
ddddDdddd / help
14mo ago