Class ConfigurableHttpClient
Configurable HTTP client inherits from HttpClient and contains a reference to ConfigurableMessageHandler.
Implements
Inherited Members
Namespace: Google.Apis.Http
Assembly: Google.Apis.Core.dll
Syntax
public class ConfigurableHttpClient : HttpClient, IDisposable
Constructors
ConfigurableHttpClient(ConfigurableMessageHandler)
Constructs a new HTTP client.
Declaration
public ConfigurableHttpClient(ConfigurableMessageHandler handler)
Parameters
Type | Name | Description |
---|---|---|
ConfigurableMessageHandler | handler |
Remarks
This is equivalent to calling
ConfigurableHttpClient(handler, true)
ConfigurableHttpClient(ConfigurableMessageHandler, bool)
Constructs a new HTTP client.
Declaration
public ConfigurableHttpClient(ConfigurableMessageHandler handler, bool disposeHandler)
Parameters
Type | Name | Description |
---|---|---|
ConfigurableMessageHandler | handler | The handler for this client to use. |
bool | disposeHandler | Whether the created ConfigurableHttpClient should dispose of the internal message handler or not when it iself is disposed. |
Properties
MessageHandler
Gets the configurable message handler.
Declaration
public ConfigurableMessageHandler MessageHandler { get; }
Property Value
Type | Description |
---|---|
ConfigurableMessageHandler |