Type Alias mini_server::RequestHandler
source · pub type RequestHandler = fn(_: HTTPRequest) -> HTTPResponse;
Expand description
RequestHandler type is a function type that defines the signature for handling HTTP requests.
It takes an HTTPRequest
as a parameter and returns an HTTPResponse