Class ConfigurableHttpClient (1.60.0)

public class ConfigurableHttpClient : HttpClient, IDisposable

Configurable HTTP client inherits from HttpClient and contains a reference to ConfigurableMessageHandler.

Inheritance

object > HttpMessageInvoker > HttpClient > ConfigurableHttpClient

Implements

IDisposable

Namespace

GoogleApisHttp

Assembly

Google.Apis.Core.dll

Constructors

ConfigurableHttpClient(ConfigurableMessageHandler)

public ConfigurableHttpClient(ConfigurableMessageHandler handler)

Constructs a new HTTP client.

Parameter
Name Description
handler ConfigurableMessageHandler
Remarks

This is equivalent to calling

ConfigurableHttpClient(handler, true)

ConfigurableHttpClient(ConfigurableMessageHandler, bool)

public ConfigurableHttpClient(ConfigurableMessageHandler handler, bool disposeHandler)

Constructs a new HTTP client.

Parameters
Name Description
handler ConfigurableMessageHandler

The handler for this client to use.

disposeHandler bool

Whether the created ConfigurableHttpClient should dispose of the internal message handler or not when it iself is disposed.

Properties

MessageHandler

public ConfigurableMessageHandler MessageHandler { get; }

Gets the configurable message handler.

Property Value
Type Description
ConfigurableMessageHandler

Extension Method