aboutsummaryrefslogtreecommitdiff
path: root/lib/std/std.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-10-22 17:48:03 -0400
committerGitHub <noreply@github.com>2023-10-22 17:48:03 -0400
commitb82459fa435c366c6af0fee96c3d9b95c24078f9 (patch)
tree771d71234a09b362ae716f53fb6482cdcdf27eb7 /lib/std/std.zig
parent33483407a26a49db60bea039b40931cc77b10453 (diff)
parent93e1f8c8e583b3140bc1985e8b346fd7aca8cf6b (diff)
downloadzig-b82459fa435c366c6af0fee96c3d9b95c24078f9.tar.gz
zig-b82459fa435c366c6af0fee96c3d9b95c24078f9.zip
Merge pull request #17407 from truemedian/http-ng
std.http: more proxy support, buffer writes, tls toggle
Diffstat (limited to 'lib/std/std.zig')
-rw-r--r--lib/std/std.zig11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/std/std.zig b/lib/std/std.zig
index 16222e52da..7342cadbef 100644
--- a/lib/std/std.zig
+++ b/lib/std/std.zig
@@ -283,10 +283,15 @@ pub const options = struct {
else
false;
- pub const http_connection_pool_size = if (@hasDecl(options_override, "http_connection_pool_size"))
- options_override.http_connection_pool_size
+ /// By default, std.http.Client will support HTTPS connections. Set this option to `true` to
+ /// disable TLS support.
+ ///
+ /// This will likely reduce the size of the binary, but it will also make it impossible to
+ /// make a HTTPS connection.
+ pub const http_disable_tls = if (@hasDecl(options_override, "http_disable_tls"))
+ options_override.http_disable_tls
else
- http.Client.default_connection_pool_size;
+ false;
pub const side_channels_mitigations: crypto.SideChannelsMitigations = if (@hasDecl(options_override, "side_channels_mitigations"))
options_override.side_channels_mitigations