Is Gentleman client thread safe?
rickyzhang82 opened this issue · 1 comments
rickyzhang82 commented
I can't find it from the search engine. I have a use case that there are concurrent Go routines invoke multiple REST call through the same Gentleman client. I wonder if the Gentleman client is thread safe or not.
whybangbang commented
if you use client.NewRequest for every request, i think it's thread safe, it always copy middleware,ctx from client and new http request and response for every request