CustomHTTPCookie
public struct CustomHTTPCookie : Codable, Sendable
A struct that represents a custom HTTP cookie.
-
Initializes a
CustomHTTPCookie
from anHTTPCookie
.Declaration
Swift
public init(from cookie: HTTPCookie)
Parameters
cookie
The
HTTPCookie
to initialize from. -
Converts the
CustomHTTPCookie
to anHTTPCookie
.Declaration
Swift
public func toHTTPCookie() -> HTTPCookie?
Return Value
An
HTTPCookie
instance.