1.73.0 (latest) 1.69.0 1.68.0 1.60.0 1.59.0 1.55.0 1.50.0

## Classes

### [BackOffHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.BackOffHandler.md.txt)

A thread-safe back-off handler which handles an abnormal HTTP response or an exception with
[IBackOff](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.IBackOff.md.txt).

### [BackOffHandler.Initializer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.BackOffHandler.Initializer.md.txt)

An initializer class to initialize a back-off handler.

### [ConfigurableHttpClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ConfigurableHttpClient.md.txt)

Configurable HTTP client inherits from [HttpClient](https://learn.microsoft.com/dotnet/api/system.net.http.httpclient) and contains a reference to
[ConfigurableMessageHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ConfigurableMessageHandler.md.txt).

### [ConfigurableMessageHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ConfigurableMessageHandler.md.txt)

A message handler which contains the main logic of our HTTP requests. It contains a list of
[IHttpUnsuccessfulResponseHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpUnsuccessfulResponseHandler.md.txt)s for handling abnormal responses, a list of
[IHttpExceptionHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpExceptionHandler.md.txt)s for handling exception in a request and a list of
[IHttpExecuteInterceptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpExecuteInterceptor.md.txt)s for intercepting a request before it has been sent to the server.
It also contains important properties like number of tries, follow redirect, etc.

### [CreateHttpClientArgs](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.CreateHttpClientArgs.md.txt)

Arguments for creating a HTTP client.

### [ExponentialBackOffInitializer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ExponentialBackOffInitializer.md.txt)

An initializer which adds exponential back-off as exception handler and \\ or unsuccessful response handler by
the given [ExponentialBackOffPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ExponentialBackOffPolicy.md.txt).

### [HandleExceptionArgs](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HandleExceptionArgs.md.txt)

Argument class to [HandleExceptionAsync(HandleExceptionArgs)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpExceptionHandler.md.txt#Google_Apis_Http_IHttpExceptionHandler_HandleExceptionAsync_Google_Apis_Http_HandleExceptionArgs_).

### [HandleUnsuccessfulResponseArgs](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HandleUnsuccessfulResponseArgs.md.txt)

Argument class to [HandleResponseAsync(HandleUnsuccessfulResponseArgs)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpUnsuccessfulResponseHandler.md.txt#Google_Apis_Http_IHttpUnsuccessfulResponseHandler_HandleResponseAsync_Google_Apis_Http_HandleUnsuccessfulResponseArgs_).

### [HttpClientFactory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HttpClientFactory.md.txt)

The default implementation of the HTTP client factory.

### [HttpClientFromMessageHandlerFactory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HttpClientFromMessageHandlerFactory.md.txt)

An implementation of [IHttpClientFactory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpClientFactory.md.txt) that allows
for the inner message handler to be injected.

### [HttpClientFromMessageHandlerFactory.ConfiguredHttpMessageHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HttpClientFromMessageHandlerFactory.ConfiguredHttpMessageHandler.md.txt)

Represents the already configured [HttpMessageHandler](https://learn.microsoft.com/dotnet/api/system.net.http.httpmessagehandler) to be used
when building a [ConfigurableHttpClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ConfigurableHttpClient.md.txt) by the factory and
information about the actual configuration.

### [HttpClientFromMessageHandlerFactory.HttpMessageHandlerOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HttpClientFromMessageHandlerFactory.HttpMessageHandlerOptions.md.txt)

Specifies the configuration options for a message handler.

### [HttpConsts](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HttpConsts.md.txt)

HTTP constants.

### [HttpExtenstions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.HttpExtenstions.md.txt)

Extension methods to [HttpRequestMessage](https://learn.microsoft.com/dotnet/api/system.net.http.httprequestmessage) and
[HttpResponseMessage](https://learn.microsoft.com/dotnet/api/system.net.http.httpresponsemessage).

### [MaxUrlLengthInterceptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.MaxUrlLengthInterceptor.md.txt)

Intercepts HTTP GET requests with a URLs longer than a specified maximum number of characters.
The interceptor will change such requests as follows:

- The request's method will be changed to POST
- A `X-HTTP-Method-Override` header will be added with the value `GET`
- Any query parameters from the URI will be moved into the body of the request.
- If query parameters are moved, the content type is set to `application/x-www-form-urlencoded`

<br />

## Interfaces

### [IConfigurableHttpClientInitializer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IConfigurableHttpClientInitializer.md.txt)

HTTP client initializer for changing the default behavior of HTTP client.
Use this initializer to change default values like timeout and number of tries.
You can also set different handlers and interceptors like [IHttpUnsuccessfulResponseHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpUnsuccessfulResponseHandler.md.txt)s,
[IHttpExceptionHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpExceptionHandler.md.txt)s and [IHttpExecuteInterceptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpExecuteInterceptor.md.txt)s.

### [IHttpClientFactory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpClientFactory.md.txt)

HTTP client factory creates configurable HTTP clients. A unique HTTP client should be created for each service.

### [IHttpExceptionHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpExceptionHandler.md.txt)

Exception handler is invoked when an exception is thrown during a HTTP request.

### [IHttpExecuteInterceptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpExecuteInterceptor.md.txt)

HTTP request execute interceptor to intercept a [HttpRequestMessage](https://learn.microsoft.com/dotnet/api/system.net.http.httprequestmessage) before it has
been sent. Sample usage is attaching "Authorization" header to a request.

### [IHttpUnsuccessfulResponseHandler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.IHttpUnsuccessfulResponseHandler.md.txt)

Unsuccessful response handler which is invoked when an abnormal HTTP response is returned when sending a HTTP
request.

## Enums

### [ConfigurableMessageHandler.LogEventType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ConfigurableMessageHandler.LogEventType.md.txt)

Specifies the type(s) of request/response events to log.

### [ExponentialBackOffPolicy](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.ExponentialBackOffPolicy.md.txt)

Indicates which of exceptions and / or HTTP status codes are automatically retried using exponential backoff.

## Delegates

### [StreamInterceptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Http.StreamInterceptor.md.txt)

A delegate used to intercept stream data without modifying it.
The parameters should always be validated before the delegate is called,
so the delegate itself does not need to validate them again.