Expand description
InterceptBuilder — fluent rule + pattern registration.
Two-phase API:
- Configure: chain
block,block_hosts,redirect,respond,modify_request,modify_responsefor declarative rules, pluspattern/at_request/at_response/resourceto control which CDPFetch.RequestPatternentries are sent onFetch.enable. - Activate:
startspawns the actor task (T6) with the registered rules + patterns, returning anInterceptHandlefor RAII teardown. Alternatively,subscribereturns aStream<Item = PausedRequest>for the manual escape-hatch path — callers drive Chrome’s interception loop themselves.
The tab field is a borrow of SessionHandle (not the full Tab from
zendriver core) — this crate must not depend on zendriver (cycle).
Tab::intercept() in zendriver constructs the builder via
InterceptBuilder::new(self.session()).
Structs§
- Intercept
Builder - Fluent builder for rule-based interception against a single tab session.
- Request
Pattern - A pending
Fetch.RequestPatternentry to send onFetch.enable.