diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-03-09 22:02:01 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-09 22:02:01 -0500 |
| commit | 7c9ed45ac2fd580bbbb4b950ac350dd49fc7600e (patch) | |
| tree | 027efed5e8b03a30b4b7a23e86ad5ca2bd0d75e5 /lib/std/std.zig | |
| parent | 14590e956e06903ac408af57874d3b5a0d697670 (diff) | |
| parent | 524e0cd987a52a60ce1014aa27cd73f99a3b9958 (diff) | |
| download | zig-7c9ed45ac2fd580bbbb4b950ac350dd49fc7600e.tar.gz zig-7c9ed45ac2fd580bbbb4b950ac350dd49fc7600e.zip | |
Merge pull request #14762 from truemedian/http-keepalive
std.http: add connection pooling, handle keep-alive and compressed content
Diffstat (limited to 'lib/std/std.zig')
| -rw-r--r-- | lib/std/std.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/std.zig b/lib/std/std.zig index c1c682e224..e888ade659 100644 --- a/lib/std/std.zig +++ b/lib/std/std.zig @@ -185,6 +185,11 @@ pub const options = struct { options_override.keep_sigpipe else false; + + pub const http_connection_pool_size = if (@hasDecl(options_override, "http_connection_pool_size")) + options_override.http_connection_pool_size + else + http.Client.default_connection_pool_size; }; // This forces the start.zig file to be imported, and the comptime logic inside that |
