Logo DataHubClient

DotNetHttpClient Type

.NET implementation of IHttpClient backed by HttpClient. Follows up to twenty redirects and removes authentication headers when the destination changes origin. HTTPS-to-HTTP redirects are rejected.

Constructors

Constructor Description

DotNetHttpClient()

Full Usage: DotNetHttpClient()

Returns: DotNetHttpClient

Creates a transport using a shared HttpClient instance.

Returns: DotNetHttpClient

DotNetHttpClient(httpClient)

Full Usage: DotNetHttpClient(httpClient)

Parameters:
Returns: DotNetHttpClient
httpClient : HttpClient
Returns: DotNetHttpClient

Instance members

Instance member Description

this.HttpClient

Full Usage: this.HttpClient

Returns: HttpClient

The underlying client, whose handler must keep automatic redirects disabled.

Returns: HttpClient

Type something to start searching.