---
title: omitIfHTTPFamily
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/url/formatstyle/hostdisplayoption/omitifhttpfamily
---

# omitIfHTTPFamily

A display option that omits the host component if the URL scheme is HTTP or HTTPS.

## Declaration

```swift
static var omitIfHTTPFamily: URL.FormatStyle.HostDisplayOption { get }
```

## See Also

### Display options

- [always](foundation/url/formatstyle/hostdisplayoption/always.md)
- [never](foundation/url/formatstyle/hostdisplayoption/never.md)
- [displayWhen(_:matches:)](foundation/url/formatstyle/hostdisplayoption/displaywhen(_:matches:).md)
- [omitWhen(_:matches:)](foundation/url/formatstyle/hostdisplayoption/omitwhen(_:matches:).md)
- [omitSpecificSubdomains(_:includeMultiLevelSubdomains:)](foundation/url/formatstyle/hostdisplayoption/omitspecificsubdomains(_:includemultilevelsubdomains:).md)
- [omitSpecificSubdomains(_:includeMultiLevelSubdomains:when:matches:)](foundation/url/formatstyle/hostdisplayoption/omitspecificsubdomains(_:includemultilevelsubdomains:when:matches:).md)
- [URL.FormatStyle.Component](foundation/url/formatstyle/component.md)
