brave/adblock-rust

Return all filters which blocks the request

darahe opened this issue · 1 comments

Is it possible to return all filters in BlockerResult for check_network_request?

pub filter: Option<String>,

adblock-rust/src/engine.rs

Lines 133 to 135 in 3eb8ac0

pub fn check_network_request(&self, request: &Request) -> BlockerResult {
self.blocker.check(request, &self.resources)
}

@antonok-edm WDYT about introducing a new method? Something like check_all_network_request, but maybe with better naming :)

Or can we expand the existing API to return all filters that match the request?