Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Gentleman client thread safe? #66

Open
rickyzhang82 opened this issue Nov 5, 2023 · 1 comment
Open

Is Gentleman client thread safe? #66

rickyzhang82 opened this issue Nov 5, 2023 · 1 comment

Comments

@rickyzhang82
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants