aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Cache.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-21 20:51:55 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-02-23 02:37:11 -0700
commit380916c0f8883746e4d84d5334f68d0569d76f38 (patch)
treed308cd79fd6eeeb1027d82c4da0de5e88a487727 /lib/std/Build/Cache.zig
parent40ed3c4d2493835cd0a9217b947b115780a9ff27 (diff)
downloadzig-380916c0f8883746e4d84d5334f68d0569d76f38.tar.gz
zig-380916c0f8883746e4d84d5334f68d0569d76f38.zip
std.http.Server.Request.Respond: support all transfer encodings
Before I mistakenly thought that missing content-length meant zero when it actually means to stream until the connection is closed. Now the respond() function accepts transfer_encoding which can be left as default (use content.len for content-length), set to none which makes it omit the content-length, or chunked, which makes it format the response as a chunked transfer even though the server has the entire contents already buffered. The echo-content tests are moved from test/standalone/http.zig to the standard library where they are actually run.
Diffstat (limited to 'lib/std/Build/Cache.zig')
0 files changed, 0 insertions, 0 deletions