setCookie(_:completionHandler:)
Adds a cookie to the cookie store.
Declaration
func setCookie(_ cookie: HTTPCookie, completionHandler: (@MainActor @Sendable () -> Void)? = nil)func setCookie(_ cookie: HTTPCookie) asyncParameters
- cookie:
The cookie to add.
- completionHandler:
A completion handler block to execute asynchronously after the method successfully stores the cookie. This block has no return value and no parameters.