pub struct EmulateNetworkConditionsByRuleParams {
pub offline: Option<bool>,
pub emulate_offline_service_worker: Option<bool>,
pub matched_network_conditions: Vec<NetworkConditions>,
}Expand description
Activates emulation of network conditions for individual requests using
URL match patterns. Unlike the deprecated Network.emulateNetworkConditions
this method does not affect navigator state. Use
Network.overrideNetworkState to explicitly modify navigator behavior.
Experimental: may change without notice.
Parameters of Network.emulateNetworkConditionsByRule.
Fields§
§offline: Option<bool>True to emulate internet disconnection. Deprecated, use the offline property in matchedNetworkConditions or emulateOfflineServiceWorker instead.
Deprecated in the protocol.
emulate_offline_service_worker: Option<bool>True to emulate offline service worker.
matched_network_conditions: Vec<NetworkConditions>Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Global conditions can be configured by leaving the urlPattern for the conditions empty. These global conditions are also applied for throttling of p2p connections.