zynagent-first application framework

Back to the API reference

zyn.RequestLogger#

/// Built-in request summary middleware.
pub const RequestLogger = struct {
    /// Compile-time request-body parameter filtering configuration.
    pub const Config = struct {
        ignored_params: []const []const u8 = &.{},
        filtered_params: []const []const u8 = &.{},
    };
    
    /// Records one request around the downstream middleware and route pipeline.
    pub fn handle(
        comptime config: Config,
        middleware: *zyn.Middleware,
    ) !void;
};