# DurableIdempotencyKeyHandler.SendAsync(HttpRequestMessage, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableidempotencykeyhandler/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableidempotencykeyhandler/methods/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableIdempotencyKeyHandler.cs#L41-L42)

```csharp
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
```

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

### Parameters

- `request` (`HttpRequestMessage`): The HTTP request message to send to the server.
- `cancellationToken` (`CancellationToken`): A cancellation token to cancel operation.

### Returns

The task object representing the asynchronous operation.

### Exceptions

- `System.ArgumentNullException`: The `request` was `null`.
- `System.OperationCanceledException`: The cancellation token was canceled. This exception is stored into the returned task.
