---
title: urlHostAllowed
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/characterset/urlhostallowed
---

# urlHostAllowed

Returns the character set for characters allowed in a host URL subcomponent.

## Declaration

```swift
static var urlHostAllowed: CharacterSet { get }
```

## See Also

### Getting Character Sets for URL Encoding

- [urlFragmentAllowed](foundation/characterset/urlfragmentallowed.md)
- [urlPasswordAllowed](foundation/characterset/urlpasswordallowed.md)
- [urlPathAllowed](foundation/characterset/urlpathallowed.md)
- [urlQueryAllowed](foundation/characterset/urlqueryallowed.md)
- [urlUserAllowed](foundation/characterset/urluserallowed.md)
