KrHttpClientOptions class
Extra options to shape HttpClient behavior.
public sealed class KrHttpClientOptions
Public Members
| name | description |
|---|---|
| KrHttpClientOptions() | The default constructor. |
| AllowAutoRedirect { get; set; } | Follow redirects automatically. Default: true. |
| Cookies { get; set; } | Cookies to use (enables UseCookies when non-null). |
| Credentials { get; set; } | Server credentials; ignored if UseDefaultCredentials = true. |
| Decompression { get; set; } | Automatic decompression (gzip/deflate/br). Default: All. |
| IgnoreCertErrors { get; set; } | Accept any server certificate (for dev/self-signed). |
| MaxAutomaticRedirections { get; set; } | Max redirects when AllowAutoRedirect = true. Default: 50. |
| Proxy { get; set; } | Proxy to use. Set UseProxy = true to enable. |
| ProxyUseDefaultCredentials { get; set; } | Use current user’s credentials for proxy auth. |
| Timeout { get; set; } | Overall request timeout (HttpClient.Timeout). Default 100s. |
| UseDefaultCredentials { get; set; } | Use current user’s credentials for server auth. |
| UseProxy { get; set; } | Whether to use a proxy handler. |
See Also
- namespace Kestrun.Client