---
title: WKDownload.RedirectPolicy
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/wkdownload/redirectpolicy
---

# WKDownload.RedirectPolicy

An enumeration with cases that indicate whether to proceed with a redirect.

## Declaration

```swift
enum RedirectPolicy
```

## Topics

### Constants

- [WKDownload.RedirectPolicy.allow](webkit/wkdownload/redirectpolicy/allow.md)
- [WKDownload.RedirectPolicy.cancel](webkit/wkdownload/redirectpolicy/cancel.md)

### Initializers

- [init(rawValue:)](webkit/wkdownload/redirectpolicy/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Managing the download

- [delegate](webkit/wkdownload/delegate.md)
- [cancel(_:)](webkit/wkdownload/cancel(_:).md)
