aboutsummaryrefslogtreecommitdiff
path: root/src/cli/create_command.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/create_command.zig')
-rw-r--r--src/cli/create_command.zig56
1 files changed, 52 insertions, 4 deletions
diff --git a/src/cli/create_command.zig b/src/cli/create_command.zig
index 544329a98..284de1fd5 100644
--- a/src/cli/create_command.zig
+++ b/src/cli/create_command.zig
@@ -1852,7 +1852,19 @@ pub const Example = struct {
// ensure very stable memory address
var async_http: *HTTP.AsyncHTTP = ctx.allocator.create(HTTP.AsyncHTTP) catch unreachable;
- async_http.* = HTTP.AsyncHTTP.initSync(ctx.allocator, .GET, api_url, header_entries, headers_buf, mutable, "", 60 * std.time.ns_per_min, http_proxy, null, HTTP.FetchRedirect.follow);
+ async_http.* = HTTP.AsyncHTTP.initSync(
+ ctx.allocator,
+ .GET,
+ api_url,
+ header_entries,
+ headers_buf,
+ mutable,
+ "",
+ 60 * std.time.ns_per_min,
+ http_proxy,
+ null,
+ HTTP.FetchRedirect.follow,
+ );
async_http.client.progress_node = progress;
const response = try async_http.sendSync(true);
@@ -1916,7 +1928,19 @@ pub const Example = struct {
// ensure very stable memory address
var async_http: *HTTP.AsyncHTTP = ctx.allocator.create(HTTP.AsyncHTTP) catch unreachable;
- async_http.* = HTTP.AsyncHTTP.initSync(ctx.allocator, .GET, url, .{}, "", mutable, "", 60 * std.time.ns_per_min, http_proxy, null, HTTP.FetchRedirect.follow);
+ async_http.* = HTTP.AsyncHTTP.initSync(
+ ctx.allocator,
+ .GET,
+ url,
+ .{},
+ "",
+ mutable,
+ "",
+ 60 * std.time.ns_per_min,
+ http_proxy,
+ null,
+ HTTP.FetchRedirect.follow,
+ );
async_http.client.progress_node = progress;
var response = try async_http.sendSync(true);
@@ -1992,7 +2016,19 @@ pub const Example = struct {
http_proxy = env_loader.getHttpProxy(parsed_tarball_url);
- async_http.* = HTTP.AsyncHTTP.initSync(ctx.allocator, .GET, parsed_tarball_url, .{}, "", mutable, "", 60 * std.time.ns_per_min, http_proxy, null, HTTP.FetchRedirect.follow);
+ async_http.* = HTTP.AsyncHTTP.initSync(
+ ctx.allocator,
+ .GET,
+ parsed_tarball_url,
+ .{},
+ "",
+ mutable,
+ "",
+ 60 * std.time.ns_per_min,
+ http_proxy,
+ null,
+ HTTP.FetchRedirect.follow,
+ );
async_http.client.progress_node = progress;
refresher.maybeRefresh();
@@ -2022,7 +2058,19 @@ pub const Example = struct {
var mutable = try ctx.allocator.create(MutableString);
mutable.* = try MutableString.init(ctx.allocator, 2048);
- async_http.* = HTTP.AsyncHTTP.initSync(ctx.allocator, .GET, url, .{}, "", mutable, "", 60 * std.time.ns_per_min, http_proxy, null, HTTP.FetchRedirect.follow);
+ async_http.* = HTTP.AsyncHTTP.initSync(
+ ctx.allocator,
+ .GET,
+ url,
+ .{},
+ "",
+ mutable,
+ "",
+ 60 * std.time.ns_per_min,
+ http_proxy,
+ null,
+ HTTP.FetchRedirect.follow,
+ );
if (Output.enable_ansi_colors) {
async_http.client.progress_node = progress_node;