From 99d2d6e607a31a1beab84e1169e2d0bc352a79cf Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 21 Jan 2023 23:11:31 -0800 Subject: Support query string parameters in module resolution --- src/http_client_async.zig | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/http_client_async.zig') diff --git a/src/http_client_async.zig b/src/http_client_async.zig index 41b12fce3..853ab8f3d 100644 --- a/src/http_client_async.zig +++ b/src/http_client_async.zig @@ -1178,7 +1178,18 @@ pub const AsyncHTTP = struct { }; const AtomicState = std.atomic.Atomic(State); - pub fn init(allocator: std.mem.Allocator, method: Method, url: URL, headers: Headers.Entries, headers_buf: string, response_buffer: *MutableString, request_body: []const u8, timeout: usize, callback: HTTPClientResult.Callback, http_proxy: ?URL) AsyncHTTP { + pub fn init( + allocator: std.mem.Allocator, + method: Method, + url: URL, + headers: Headers.Entries, + headers_buf: string, + response_buffer: *MutableString, + request_body: []const u8, + timeout: usize, + callback: HTTPClientResult.Callback, + http_proxy: ?URL, + ) AsyncHTTP { var this = AsyncHTTP{ .allocator = allocator, .url = url, .method = method, .request_headers = headers, .request_header_buf = headers_buf, .request_body = request_body, .response_buffer = response_buffer, .completion_callback = callback, .http_proxy = http_proxy }; this.client = HTTPClient.init(allocator, method, url, headers, headers_buf); this.client.timeout = timeout; -- cgit v1.2.3