Two requests from different threads with different urls in same httpclient instance

Viewed 139

I make two different 'GET' requests from two different threads at the same time. Will i have any conflicts if i will try to send at the same time but with different urls?

 static HttpClient client = new HttpClient();

 private void Thread1()
 {
   var result= await client.GetAsync("http://URL1");
 }

 private void Thread2()
 {
   var result= await client.GetAsync("http://URL2");
 }

Methods Thread1 and Thread2 will run at the same time. Will i have any problem? Or httpclient will handle both requests fine?

1 Answers
Related