Class ConfigurableHttpClient
Configurable HTTP client inherits from System.Net.Http.HttpClient and contains a reference to ConfigurableMessageHandler.
Inheritance
System.Object
System.Net.Http.HttpMessageInvoker
System.Net.Http.HttpClient
ConfigurableHttpClient
Implements
System.IDisposable
Inherited Members
System.Net.Http.HttpClient.CancelPendingRequests()
System.Net.Http.HttpClient.DeleteAsync(System.String)
System.Net.Http.HttpClient.DeleteAsync(System.String, System.Threading.CancellationToken)
System.Net.Http.HttpClient.DeleteAsync(System.Uri)
System.Net.Http.HttpClient.DeleteAsync(System.Uri, System.Threading.CancellationToken)
System.Net.Http.HttpClient.Dispose(System.Boolean)
System.Net.Http.HttpClient.GetAsync(System.String)
System.Net.Http.HttpClient.GetAsync(System.String, System.Net.Http.HttpCompletionOption)
System.Net.Http.HttpClient.GetAsync(System.String, System.Net.Http.HttpCompletionOption, System.Threading.CancellationToken)
System.Net.Http.HttpClient.GetAsync(System.String, System.Threading.CancellationToken)
System.Net.Http.HttpClient.GetAsync(System.Uri)
System.Net.Http.HttpClient.GetAsync(System.Uri, System.Net.Http.HttpCompletionOption)
System.Net.Http.HttpClient.GetAsync(System.Uri, System.Net.Http.HttpCompletionOption, System.Threading.CancellationToken)
System.Net.Http.HttpClient.GetAsync(System.Uri, System.Threading.CancellationToken)
System.Net.Http.HttpClient.GetByteArrayAsync(System.String)
System.Net.Http.HttpClient.GetByteArrayAsync(System.Uri)
System.Net.Http.HttpClient.GetStreamAsync(System.String)
System.Net.Http.HttpClient.GetStreamAsync(System.Uri)
System.Net.Http.HttpClient.GetStringAsync(System.String)
System.Net.Http.HttpClient.GetStringAsync(System.Uri)
System.Net.Http.HttpClient.PostAsync(System.String, System.Net.Http.HttpContent)
System.Net.Http.HttpClient.PostAsync(System.String, System.Net.Http.HttpContent, System.Threading.CancellationToken)
System.Net.Http.HttpClient.PostAsync(System.Uri, System.Net.Http.HttpContent)
System.Net.Http.HttpClient.PostAsync(System.Uri, System.Net.Http.HttpContent, System.Threading.CancellationToken)
System.Net.Http.HttpClient.PutAsync(System.String, System.Net.Http.HttpContent)
System.Net.Http.HttpClient.PutAsync(System.String, System.Net.Http.HttpContent, System.Threading.CancellationToken)
System.Net.Http.HttpClient.PutAsync(System.Uri, System.Net.Http.HttpContent)
System.Net.Http.HttpClient.PutAsync(System.Uri, System.Net.Http.HttpContent, System.Threading.CancellationToken)
System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage)
System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage, System.Net.Http.HttpCompletionOption)
System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage, System.Net.Http.HttpCompletionOption, System.Threading.CancellationToken)
System.Net.Http.HttpClient.SendAsync(System.Net.Http.HttpRequestMessage, System.Threading.CancellationToken)
System.Net.Http.HttpClient.BaseAddress
System.Net.Http.HttpClient.DefaultRequestHeaders
System.Net.Http.HttpClient.MaxResponseContentBufferSize
System.Net.Http.HttpClient.Timeout
System.Net.Http.HttpMessageInvoker.Dispose()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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, Boolean)
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. |
System.Boolean | 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 |
Implements
System.IDisposable