when

open fun when(predicate: Predicate<Cookie>): CookieSameSiteSupplier

Limit this supplier so that it's only called if the predicate accepts the Cookie.

Return

a new CookieSameSiteSupplier that only calls this supplier when thecookie matches the predicate

Parameters

predicate

the predicate used to match the cookie