evaluate
abstract fun evaluate(url: Uri, documentUrl: Uri, checkFirstParty: Boolean = true, requestHeaders: Map<String, String>): TrackingEvent?
Evaluates whether the given url is a tracker in the context of documentUrl.
Return
a TrackingEvent if the URL is identified as a tracker, or null otherwise.
Parameters
url
the resource URL to evaluate.
documentUrl
the URL of the document that initiated the request.
checkFirstParty
if true, first-party requests are excluded from blocking.
requestHeaders
the HTTP headers associated with the request.
abstract fun evaluate(url: String, documentUrl: Uri, checkFirstParty: Boolean = true, requestHeaders: Map<String, String>): TrackingEvent?
Evaluates whether the given url is a tracker in the context of documentUrl.
Return
a TrackingEvent if the URL is identified as a tracker, or null otherwise.
Parameters
url
the resource URL string to evaluate.
documentUrl
the URL of the document that initiated the request.
checkFirstParty
if true, first-party requests are excluded from blocking.
requestHeaders
the HTTP headers associated with the request.