Skip to main content

Module network

Module network 

Source
Expand description

Network interception, request logs, and console error tracking.

§Workload

I/O-bound CDP. Multi-page about:blank sanitize fans out with crate::concurrency::join_bounded. Domain allow-lists are small and sequential (cost ≪ overhead).

Structs§

ConsoleEntry
DomainFilter
ErrorEntry
EventTracker

Functions§

format_console_arg
Format a single CDP RemoteObject arg into a human-readable string. Priority: value → preview → description.
format_console_args
Format an array of CDP RemoteObject args into a single space-separated string.
install_domain_filter
Install both layers of domain filtering on a session:
install_domain_filter_fetch
Enable Fetch-based network interception for domain filtering. This intercepts all requests and checks them against the allowed domains list. The actual handling of Fetch.requestPaused events happens in resolve_fetch_paused in the actions module.
install_domain_filter_script
sanitize_existing_pages
set_content
set_cpu_throttling_rate
set_extra_headers
set_network_conditions
Activate Network.emulateNetworkConditions (latency ms; throughput bytes/s, -1 = unlimited).
set_offline