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
Use this code to disable HTTP Keep-Alive on the client:
_http.DefaultRequestHeaders.ConnectionClose = true;
This will set Connection request header to close.
Connection
close