load

open suspend override fun load(path: Path = Path(DEFAULT_SESSION_FILE), pattern: Regex = Regex(".*")): List<Network.Cookie>

Restores cookies previously written by save and hands them to the browser.

Return

The cookies that were restored.

Parameters

path

Where to read from. Defaults to DEFAULT_SESSION_FILE in the working directory.

pattern

Only cookies whose serialized form matches are loaded. Defaults to all of them.

Throws

if the browser has not been started yet.