---
title: WebPage.NavigationPreferences.UpgradeToHTTPSPolicy
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/webpage/navigationpreferences/upgradetohttpspolicy
---

# WebPage.NavigationPreferences.UpgradeToHTTPSPolicy

Preference for loading a webpage with HTTPS, and how failures should be handled.

## Declaration

```swift
enum UpgradeToHTTPSPolicy
```

## Topics

### Enumeration Cases

- [WebPage.NavigationPreferences.UpgradeToHTTPSPolicy.automaticFallbackToHTTP](webkit/webpage/navigationpreferences/upgradetohttpspolicy/automaticfallbacktohttp.md)
- [WebPage.NavigationPreferences.UpgradeToHTTPSPolicy.errorOnFailure](webkit/webpage/navigationpreferences/upgradetohttpspolicy/erroronfailure.md)
- [WebPage.NavigationPreferences.UpgradeToHTTPSPolicy.keepAsRequested](webkit/webpage/navigationpreferences/upgradetohttpspolicy/keepasrequested.md)
- [WebPage.NavigationPreferences.UpgradeToHTTPSPolicy.userMediatedFallbackToHTTP](webkit/webpage/navigationpreferences/upgradetohttpspolicy/usermediatedfallbacktohttp.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
