I've got and rest api class that has several methods that perform http requests to my service. In constructor it create instance of HttpClient. Api instance is reused in different threads. Will it cause cross thread problems?
Currently i see two ways to make it thread safe:
- Create new http client for each request.
- Create separate instances of api class for each thread.