---
title: stopLoading()
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/urlprotocol/stoploading()
---

# stopLoading()

Stops protocol-specific loading of the request.

## Declaration

```swift
func stopLoading()
```

## Discussion

Discussion When this method is called, the subclass implementation should stop loading a request. This could be in response to a cancel operation, so protocol implementations must be able to handle this call while a load is in progress. When your protocol receives a call to this method, it should also stop sending notifications to the client. Subclasses must implement this method.

## See Also

### Starting and stopping downloads

- [startLoading()](foundation/urlprotocol/startloading().md)
