I had a low performance problem with HTTP requests on .NET. The HTTP GET request to a REST API on the localhost took about 500 ms to complete. I spent a lot of time to fix i
See code below:
HttpClient cli; ... cli.DefaultRequestHeaders.Add("Connection", "keep-alive"); cli.DefaultRequestHeaders.Add("Keep-Alive", "600");