CookieConfig
public final class CookieConfig : @unchecked Sendable
Configuration for managing cookies in the application.
-
A list of Cookies name that should be persisted to the storage. For cookies that should not be persisted, do not add the cookie name to this list.
Declaration
Swift
public var persist: [String]
-
In-memory storage for cookies.
Declaration
Swift
public private(set) var inMemoryStorage: InMemoryCookieStorage { get }
-
Persistent storage for cookies.
Declaration
Swift
public internal(set) var cookieStorage: StorageDelegate<[CustomHTTPCookie]> { get }
-
Initializes a new instance of
CookieConfig
.Declaration
Swift
public init()