Class CreateHttpClientArgs (1.68.0)

public class CreateHttpClientArgs

Arguments for creating a HTTP client.

Inheritance

object > CreateHttpClientArgs

Namespace

Google.Apis.Http

Assembly

Google.Apis.Core.dll

Constructors

CreateHttpClientArgs()

public CreateHttpClientArgs()

Constructs a new argument instance.

Properties

ApplicationName

public string ApplicationName { get; set; }

Gets or sets the application name that is sent in the User-Agent header.

Property Value
Type Description
string

GZipEnabled

public bool GZipEnabled { get; set; }

Gets or sets whether GZip is enabled.

Property Value
Type Description
bool

GoogleApiClientHeader

public string GoogleApiClientHeader { get; set; }

Gets or sets the value for the x-goog-api-client header

Property Value
Type Description
string

Initializers

public IList<IConfigurableHttpClientInitializer> Initializers { get; }

Gets a list of initializers to initialize the HTTP client instance.

Property Value
Type Description
IListIConfigurableHttpClientInitializer

UniverseDomain

public string UniverseDomain { get; set; }

The universe domain that will be included as part of HttpRequestMessage options that may be used by the credential, if any, to validate against its own universe domain. May be null in which case no universe domain will be included in the request.

Property Value
Type Description
string

Extension Method