zynagent-first application framework

Back to the API reference

zyn.MethodOverride#

/// Built-in URL-encoded form method override middleware.
pub const MethodOverride = struct {
    /// Compile-time method override parameter configuration.
    pub const Config = struct {
        param: []const u8,
    };
    
    /// Routes URL-encoded POST forms using their configured override parameter.
    pub fn handle(
        comptime config: Config,
        middleware: *zyn.Middleware,
    ) !void;
};