public class ConfigurableHttpClient : HttpClient, IDisposable
Configurable HTTP client inherits from HttpClient and contains a reference to ConfigurableMessageHandler.
Implements
IDisposableNamespace
Google.Apis.HttpAssembly
Google.Apis.Core.dll
Constructors
ConfigurableHttpClient(ConfigurableMessageHandler)
public ConfigurableHttpClient(ConfigurableMessageHandler handler)
Constructs a new HTTP client.
Parameter | |
---|---|
Name | Description |
handler |
ConfigurableMessageHandler |
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 |