authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-18 22:14:53-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-02-23 02:37:11-07:00
log2df3de1e209076cb27d6573a0cdd2bed075d88b3
tree43c4b4bdeb09fa68b69b06e8ffca8e6df067372a
parent68d3e103b707f8d55ba29ed8c5ccfdcf791076ca

std.http.Server: no more dynamic allocation

In particular remove OutOfMemory from the error set for parsing client http headers.

1 files changed, 1 insertions(+), 2 deletions(-)

lib/std/http/Server.zig+1-2
......@@ -96,7 +96,7 @@ pub const Request = struct {
9696 };
9797 }
9898
99 pub const ParseError = Allocator.Error || error{
99 pub const ParseError = error{
100100 UnknownHttpMethod,
101101 HttpHeadersInvalid,
102102 HttpHeaderContinuationsUnsupported,
......@@ -612,7 +612,6 @@ const http = std.http;
612612const mem = std.mem;
613613const net = std.net;
614614const Uri = std.Uri;
615const Allocator = mem.Allocator;
616615const assert = std.debug.assert;
617616
618617const Server = @This();