---
title: "init(rawValue:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/httpcookiepropertykey/init(rawvalue:)"
---

# init(rawValue:)

Creates an HTTP cookie property key using the given string.

## Declaration

```swift
init(rawValue: String)
```

## Parameters

- `rawValue`: The string to use as a key.

## Discussion

Discussion You can use this initializer to create HTTP cookie property keys that aren’t already represented by the predefined constants.

## See Also

### Creating custom cookie property keys

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