---
title: HTTPCookiePropertyKey
framework: foundation
role: symbol
role_heading: Structure
path: foundation/httpcookiepropertykey
---

# HTTPCookiePropertyKey

Constants that define the supported keys in a cookie attributes dictionary.

## Declaration

```swift
struct HTTPCookiePropertyKey
```

## Topics

### Cookie property keys

- [comment](foundation/httpcookiepropertykey/comment.md)
- [commentURL](foundation/httpcookiepropertykey/commenturl.md)
- [discard](foundation/httpcookiepropertykey/discard.md)
- [domain](foundation/httpcookiepropertykey/domain.md)
- [expires](foundation/httpcookiepropertykey/expires.md)
- [maximumAge](foundation/httpcookiepropertykey/maximumage.md)
- [name](foundation/httpcookiepropertykey/name.md)
- [originURL](foundation/httpcookiepropertykey/originurl.md)
- [path](foundation/httpcookiepropertykey/path.md)
- [port](foundation/httpcookiepropertykey/port.md)
- [sameSitePolicy](foundation/httpcookiepropertykey/samesitepolicy.md)
- [secure](foundation/httpcookiepropertykey/secure.md)
- [value](foundation/httpcookiepropertykey/value.md)
- [version](foundation/httpcookiepropertykey/version.md)

### Creating custom cookie property keys

- [init(_:)](foundation/httpcookiepropertykey/init(_:).md)
- [init(rawValue:)](foundation/httpcookiepropertykey/init(rawvalue:).md)

### Type Properties

- [setByJavaScript](foundation/httpcookiepropertykey/setbyjavascript.md)

## Relationships

### Conforms To

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

## See Also

### Accessing cookie properties as key-value pairs

- [properties](foundation/httpcookie/properties.md)
