# Abort()

> If in progress, halts the UnityWebRequest as soon as possible.

## Definition

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

```csharp
public void Abort()
```

### Remarks

This method may be called at any time. If the UnityWebRequest has not already completed, the UnityWebRequest will halt uploading or downloading data as soon as possible. Aborted UnityWebRequests are considered to have encountered a system error. Depending upon the type of error, the [UnityWebRequest.result](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/result-1.md) property will return one of the error values: [ConnectionError](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/result/connectionerror.md), [ProtocolError](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/result/protocolerror.md), or [DataProcessingError](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/result/dataprocessingerror.md). The [UnityWebRequest.error](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/error.md) property will be `Request Aborted`.

If this method is called prior to calling [UnityWebRequest.Send](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/send.md), then the UnityWebRequest will abort immediately after the call to [UnityWebRequest.Send](/engine/6000.3/script-reference/unityengine/networking/unitywebrequest/send.md).

Calls to this method have no effect after this UnityWebRequest has encountered a different error, or has successfully finished communicating with the remote server.
