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

# init(_:)

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. This convenience initializer is identical to init(rawValue:).

## See Also

### Creating custom cookie property keys

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