mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
Move Net staff to clean network module
This commit is contained in:
@@ -699,7 +699,7 @@ pub fn BrowserContext(comptime CDP_T: type) type {
|
||||
};
|
||||
|
||||
const cdp = self.cdp;
|
||||
const allocator = cdp.client.send_arena.allocator();
|
||||
const allocator = cdp.client.sendAllocator();
|
||||
|
||||
const field = ",\"sessionId\":\"";
|
||||
|
||||
|
||||
@@ -48,6 +48,10 @@ const Client = struct {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn sendAllocator(self: *Client) Allocator {
|
||||
return self.send_arena.allocator();
|
||||
}
|
||||
|
||||
pub fn sendJSON(self: *Client, message: anytype, opts: json.Stringify.Options) !void {
|
||||
var opts_copy = opts;
|
||||
opts_copy.whitespace = .indent_2;
|
||||
|
||||
Reference in New Issue
Block a user