mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
787 stars 81 forks source link

feat: add configuration for request interception and cache #95

Closed ernestas-poskus closed 2 years ago

ernestas-poskus commented 2 years ago

The change adds 2 new configuration options for passing to NetworkManager

The first one is for enabling Chrome cache and the second for request interception. BTW it's kind of cumbersome to have 3 configuration structs BrowserConfig, HandlerConfig and TargetConfig

network_manager.set_cache_enabled(config.cache_enabled);
network_manager.set_request_interception(config.request_intercept);

cc @mattsse