CustomHTTPCookie
public struct CustomHTTPCookie : Codable, Sendable
A struct that represents a custom HTTP cookie.
-
Initializes a
CustomHTTPCookiefrom anHTTPCookie.Declaration
Swift
public init(from cookie: HTTPCookie)Parameters
cookieThe
HTTPCookieto initialize from. -
Converts the
CustomHTTPCookieto anHTTPCookie.Declaration
Swift
public func toHTTPCookie() -> HTTPCookie?Return Value
An
HTTPCookieinstance.
View on GitHub