5
Alizer1
3y

Fuck HttpClient

Once upon a time there was WebClient and WebRequest, everything was simple and life back then was just 3 lines of code. But Microsoft came and decided to ruin everything with HttpClient. WHY IS HTTPCLIENT AN ASS TO DISPOSE? why cant you just close the connection and not fucking leave us with a TIME_WAIT. oh yes it doesn't support ftp and you'll recommend us to use a third party lib? fuck it if you want us to move to something better don't leave us with a half-assed HttpClient. but what about if you have 1000 proxies? oh boy I do love to initialize 1000 HttpClients with different HttpClientHandlers, want only to use HttpClient each request? goodluck filling your ports with TIME_WAIT seriously microsoft

Comments
  • 1
    I can’t remember the last time I used it to be honest. We use Flurl now and before that we used RestSharp
  • 0
    it's 2022 - who the fork uses FTP anymore? or proxys?
  • 0
    @tosensei Proxying is the reason HTTP could become so universal. It's way more flexible than the routing options for most other protocols.
Add Comment