# SendAsync(HttpRequestMessage, CancellationToken)

> Send an HTTP request as an asynchronous operation.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Networking](/engine/6000.6/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

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

### Parameters

**** (\[HttpRequestMessage]\(https\://learn.microsoft.com/dotnet/api/system.net.http.httprequestmessage)): The HTTP request message to send.**** (\[CancellationToken]\(https\://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken)): The cancellation token to cancel operation.

### Returns

| Type                                                                                             | Description                                              |
| ------------------------------------------------------------------------------------------------ | -------------------------------------------------------- |
| [Task\<HttpResponseMessage>](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task) | The task object representing the asynchronous operation. |
