Type Alias mini_server::EventHandler

source ยท
pub type EventHandler = fn(_: &HTTPRequest, _: &mut HTTPResponse);
Expand description

EventHandler type is a function type that defines the signature for handling events triggered by HTTP requests. It takes references to an HTTPRequest and a mutable HTTPResponse as parameters.