Skip to content

Commit e2a7d0f

Browse files
committed
http_proxy_before ?? comment
1 parent b7fd4e9 commit e2a7d0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdp/cdp.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,10 @@ pub fn BrowserContext(comptime CDP_T: type) type {
322322

323323
inspector: Inspector,
324324
isolated_world: ?IsolatedWorld,
325+
326+
// Used to restore the proxy after the CDP session ends. If CDP never over-wrote it, it won't restore it (the first null).
327+
// If the CDP is restoring it, but the original value was null, that's the 2nd null.
328+
// If you only have 1 null it would be ambiguous, does null mean it shouldn't be restored, or should it be restored to null?
325329
http_proxy_before: ??std.Uri = null,
326330

327331
const Self = @This();

0 commit comments

Comments
 (0)