setCookie

suspend fun setCookie(cookie: Cookie): Boolean

Sets a cookie for the specified url or domain.


suspend fun setCookie(url: String, cookieHeader: String): Boolean

Sets a cookie string for the specified url.

Note: Cookies are process-global in Android WebView.