browser context proxyServer

This commit is contained in:
sjorsdonkers
2025-06-17 17:59:28 +02:00
parent 9b35736be3
commit 6f5141d5fb
2 changed files with 22 additions and 0 deletions

View File

@@ -319,6 +319,7 @@ pub fn BrowserContext(comptime CDP_T: type) type {
inspector: Inspector,
isolated_world: ?IsolatedWorld,
http_proxy_before: ??std.Uri = null,
const Self = @This();
@@ -373,6 +374,8 @@ pub fn BrowserContext(comptime CDP_T: type) type {
self.node_registry.deinit();
self.node_search_list.deinit();
self.cdp.browser.notification.unregisterAll(self);
if (self.http_proxy_before) |prev_proxy| self.cdp.browser.http_client.http_proxy = prev_proxy;
}
pub fn reset(self: *Self) void {