setCookieWithFirstParty

open fun setCookieWithFirstParty(uri: <Error class: unknown class>, firstParty: <Error class: unknown class>, cookie: String)

Adds @cookie to @jar, exactly as though it had appeared in a Set-Cookie header returned from a request to @uri.

Parameters

uri

the URI setting the cookie

firstParty

the URI for the main document

cookie

the stringified cookie to set