Show / Hide Table of Contents

Class HttpClientFactory

The default implementation of the HTTP client factory.

Inheritance
System.Object
HttpClientFactory
Implements
IHttpClientFactory
Inherited Members
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 HttpClientFactory : IHttpClientFactory

Methods

CreateHandler(CreateHttpClientArgs)

Creates a HTTP message handler. Override this method to mock a message handler.

Declaration
protected virtual HttpMessageHandler CreateHandler(CreateHttpClientArgs args)
Parameters
Type Name Description
CreateHttpClientArgs args
Returns
Type Description
System.Net.Http.HttpMessageHandler

CreateHttpClient(CreateHttpClientArgs)

Creates a new configurable HTTP client.

Declaration
public ConfigurableHttpClient CreateHttpClient(CreateHttpClientArgs args)
Parameters
Type Name Description
CreateHttpClientArgs args
Returns
Type Description
ConfigurableHttpClient

Implements

IHttpClientFactory

Extension Methods

Utilities.ThrowIfNull<T>(T, String)
Back to top