Class ConfigurableHttpClient (1.55.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

Google.Apis.Http

Assembly

Google.Apis.Core.dll

Constructors

ConfigurableHttpClient(ConfigurableMessageHandler)

public ConfigurableHttpClient(ConfigurableMessageHandler handler)

Constructs a new HTTP client.

Parameter
NameDescription
handlerConfigurableMessageHandler
Remarks

This is equivalent to calling

ConfigurableHttpClient(handler, true)

ConfigurableHttpClient(ConfigurableMessageHandler, Boolean)

public ConfigurableHttpClient(ConfigurableMessageHandler handler, bool disposeHandler)

Constructs a new HTTP client.

Parameters
NameDescription
handlerConfigurableMessageHandler

The handler for this client to use.

disposeHandlerBoolean

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
TypeDescription
ConfigurableMessageHandler

Extension Method