async: remove pseudo-async http client

This commit is contained in:
Pierre Tachoire
2024-11-15 14:57:44 +01:00
parent 6809bb5393
commit 7fed1f3015
6 changed files with 3 additions and 2203 deletions

View File

@@ -29,7 +29,7 @@ const html_test = @import("html_test.zig").html;
pub const Types = jsruntime.reflect(apiweb.Interfaces);
pub const UserContext = apiweb.UserContext;
const Client = @import("async/Client.zig");
const Client = @import("http/async/main.zig").Client;
var doc: *parser.DocumentHTML = undefined;
@@ -41,7 +41,7 @@ fn execJS(
try js_env.start();
defer js_env.stop();
var cli = Client{ .allocator = alloc, .loop = js_env.nat_ctx.loop };
var cli = Client{ .allocator = alloc };
defer cli.deinit();
try js_env.setUserContext(UserContext{