Instance Method

setCookie(_:completionHandler:)

Sets a cookie.

Declaration

func setCookie(_ cookie: HTTPCookie, completionHandler: (() -> Void)? = nil)

Parameters

cookie

The cookie to set.

completionHandler

A block to invoke once the cookie has been set.

See Also

Cookie Management