Class
CodableHTTPCookie
public final class CodableHTTPCookie: HTTPCookie, Codable
A subclass of HTTPCookie conforming to Codable.
Relationships
Conforms To
CodableHTTPCookie
Initializers
init?(properties:)
override public init?(properties: [HTTPCookiePropertyKey: Any])
Init.
Parameters
| Name | Type | Description |
|---|---|---|
| properties | [HTTPCookiePropertyKey: Any] |
A valid |
init?(_:)
public convenience init?(_ cookie: HTTPCookie)
Init.
Parameters
| Name | Type | Description |
|---|---|---|
| cookie | HTTPCookie |
A valid |
init(from:)
public convenience init(from decoder: Decoder) throws
Init.
Parameters
| Name | Type | Description |
|---|---|---|
| decoder | Decoder |
A valid |
Methods
encode(to:)
public func encode(to encoder: Encoder) throws
Encode.
Parameters
| Name | Type | Description |
|---|---|---|
| encoder | Encoder |
A valid |