aboutsummaryrefslogtreecommitdiff
path: root/lib/std/http/Server.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-16 18:35:57 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-02-23 02:37:11 -0700
commit78192637fba21c1cc6fca364be716795e4e44020 (patch)
treec8cd4fd1f06505cb49750a7893b216d1f26575e0 /lib/std/http/Server.zig
parentd574875f00db32c40019c69465d450a6a58da67f (diff)
downloadzig-78192637fba21c1cc6fca364be716795e4e44020.tar.gz
zig-78192637fba21c1cc6fca364be716795e4e44020.zip
std.http: parser fixes
* add API for iterating over custom HTTP headers * remove `trailing` flag from std.http.Client.parse. Instead, simply don't call parse() for trailers. * fix the logic inside that parse() function. it was using wrong std.mem functions, ignoring malformed data, and returned errors on dead branches. * simplify logic inside wait() * fix HeadersParser not dropping the 2 read bytes of \r\n after a chunked transfer * move the trailers test to be a std lib unit test and make it pass
Diffstat (limited to 'lib/std/http/Server.zig')
0 files changed, 0 insertions, 0 deletions