mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00

Use Karl Seguin's http.zig as HTTP server backend: https://github.com/karlseguin/http.zig Update loggers to use new `jetzig.loggers.LogQueue` to offload logging to a background thread. Numerous other optimizations to remove unneeded allocs. Performance jump on a simple request from approx. 2k requests/second to approx. 40k requests/second (Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz). Color support for Windows Zmpl partial arg type coercion
8 lines
185 B
Zig
8 lines
185 B
Zig
const std = @import("std");
|
|
const jetzig = @import("jetzig");
|
|
|
|
pub fn index(request: *jetzig.Request, data: *jetzig.Data) !jetzig.View {
|
|
_ = data;
|
|
return request.render(.ok);
|
|
}
|