addCookieWithFirstParty

open fun addCookieWithFirstParty(firstParty: <Error class: unknown class>, cookie: Cookie)

Adds @cookie to @jar.

Emits the signal@CookieJar::changed signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's expire date is not in the past).

Parameters

firstParty

the URI for the main document

cookie

a #SoupCookie