---
title: WKWebpagePreferences.UpgradeToHTTPSPolicy
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/wkwebpagepreferences/upgradetohttpspolicy
---

# WKWebpagePreferences.UpgradeToHTTPSPolicy

## Declaration

```swift
enum UpgradeToHTTPSPolicy
```

## Overview

Overview A secure navigation policy represents whether or not there is a preference for loading a webpage with https, and how failures should be handled.

## Topics

### Enumeration Cases

- [WKWebpagePreferences.UpgradeToHTTPSPolicy.automaticFallbackToHTTP](webkit/wkwebpagepreferences/upgradetohttpspolicy/automaticfallbacktohttp.md)
- [WKWebpagePreferences.UpgradeToHTTPSPolicy.errorOnFailure](webkit/wkwebpagepreferences/upgradetohttpspolicy/erroronfailure.md)
- [WKWebpagePreferences.UpgradeToHTTPSPolicy.keepAsRequested](webkit/wkwebpagepreferences/upgradetohttpspolicy/keepasrequested.md)
- [WKWebpagePreferences.UpgradeToHTTPSPolicy.userMediatedFallbackToHTTP](webkit/wkwebpagepreferences/upgradetohttpspolicy/usermediatedfallbacktohttp.md)

### Initializers

- [init(rawValue:)](webkit/wkwebpagepreferences/upgradetohttpspolicy/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)
