---
title: CFURLComponentType
framework: corefoundation
role: symbol
role_heading: Enumeration
path: corefoundation/cfurlcomponenttype
---

# CFURLComponentType

The types of components in a URL.

## Declaration

```swift
enum CFURLComponentType
```

## Overview

Overview These constants are used by the CFURLGetByteRangeForComponent(_:_:_:) function.

## Topics

### Constants

- [CFURLComponentType.scheme](corefoundation/cfurlcomponenttype/scheme.md)
- [CFURLComponentType.netLocation](corefoundation/cfurlcomponenttype/netlocation.md)
- [CFURLComponentType.path](corefoundation/cfurlcomponenttype/path.md)
- [CFURLComponentType.resourceSpecifier](corefoundation/cfurlcomponenttype/resourcespecifier.md)
- [CFURLComponentType.user](corefoundation/cfurlcomponenttype/user.md)
- [CFURLComponentType.password](corefoundation/cfurlcomponenttype/password.md)
- [CFURLComponentType.userInfo](corefoundation/cfurlcomponenttype/userinfo.md)
- [CFURLComponentType.host](corefoundation/cfurlcomponenttype/host.md)
- [CFURLComponentType.port](corefoundation/cfurlcomponenttype/port.md)
- [CFURLComponentType.parameterString](corefoundation/cfurlcomponenttype/parameterstring.md)
- [CFURLComponentType.query](corefoundation/cfurlcomponenttype/query.md)
- [CFURLComponentType.fragment](corefoundation/cfurlcomponenttype/fragment.md)

### Initializers

- [init(rawValue:)](corefoundation/cfurlcomponenttype/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

### Miscellaneous

- [CFURLPathStyle](corefoundation/cfurlpathstyle.md)
