MiddlewareSourceA middleware is a function that takes a Http.Route.handler and returns a Http.Route.handler. It is typically used to add content to the request context that is valid only during a request.
A middleware stack is a list of middlewares.
apply m h applies the middleware m with the handler h, so that the middleware logic wraps the handler.
create ~name (h -> h) create a middleware with name.