verdict(for:)
Determines if accessing the specified URL is allowed or denied.
Declaration
class func verdict(for url: URL) async -> NEURLFilter.VerdictParameters
- url:
The URL to be validated.
Return Value
A NEURLFilter.Verdict that indicates whether the filter allows or denies connecting to the URL. If the verdict is deny, the caller should fail the URL request.
Discussion
Callers should honor the return verdict to prevent communication with restricted or malicious sites.