HttpClientHandler
HttpClientHandler is a concrete implementation of HttpMessageHandler in the System.Net.Http namespace and is used by HttpClient to send requests and receive responses. It exposes transport-level configuration that affects cookies, redirects, decompression, proxy usage, and client authentication. By adjusting its properties, applications can tailor how HTTP traffic is processed without changing the higher-level HttpClient code.
Key capabilities include controlling redirection with AllowAutoRedirect, enabling automatic decompression for responses through AutomaticDecompression (for methods
Typical usage involves creating an HttpClientHandler, configuring the desired properties, and passing the handler to the
Platform considerations may affect the available features or defaults across different runtimes. While HttpClientFactory can simplify