okhttp / okhttp3 / Cookie / matches

matches

fun matches(url: HttpUrl): Boolean

Returns true if this cookie should be included on a request to url. In addition to this check callers should also confirm that this cookie has not expired.