add commented code for proxy usage

This commit is contained in:
Emil Lerch 2023-10-20 14:37:28 -07:00
parent 812d48b681
commit d49ccfcb2a
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -11,6 +11,13 @@ pub fn main() !u8 {
defer arena.deinit(); defer arena.deinit();
const allocator = arena.allocator(); const allocator = arena.allocator();
var client = std.http.Client{ .allocator = allocator }; var client = std.http.Client{ .allocator = allocator };
// .allocator = allocator,
// .proxy = .{
// .protocol = .plain,
// .host = "localhost",
// .port = 8080,
// },
// };
const stdout_file = std.io.getStdOut().writer(); const stdout_file = std.io.getStdOut().writer();
var bw = std.io.bufferedWriter(stdout_file); var bw = std.io.bufferedWriter(stdout_file);