Start United States USA — software Salvaging. Net's HttpClient

Salvaging. Net's HttpClient

211
0
TEILEN

Join the DZone community and get the full member experience.
If you read my previous article, it’s easy to become frustrated. HttpClient is at …

Join the DZone community and get the full member experience. If you read my previous article, it’s easy to become frustrated. HttpClient is at the core of everything we as software developers normally do when we integrate our stuff with other people’s stuff. Somebody sounding the alarm, telling you that it’s fundamentally broken, might result in everything ranging from a general concern about ones own code, to flat out panic attacks. Hence, I figured I’d be an asshole unless I also showed you an alternative. Paradoxically, fixing HttpClient is very easy, it’s just to cut away everything in it that’s dangerous, and encapsulate everything that’s beautiful about it into a much safer API, making it impossible for developers to retrieve the instance to the HttpClient you’re using internally.

Continue reading...