-
Can multiple go routines that make http requests (potentially concurrently) share the same client or do they need to create a new client for every request? They share the same underlying transport / authentication settings. They just call different endpoints of the same REST API. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I asked a similar question before, see #542 , and i got the answer
And as described in the README Resty design section
In the resty source code,
Related issue: #328 |
Beta Was this translation helpful? Give feedback.
I asked a similar question before, see #542 , and i got the answer
And as described in the README Resty design section
In the resty source code,
resty.New()
function will create golang standardhttp.Client
, and the docs also said:Related issue: #328