Std.Http.Server.Route.Middleware
type
MiddlewareThis declaration introduces a public type.
What it does
A step that wraps a handler.
It is given the request and the rest of the chain, so it decides whether
to call on at all: that is what lets one refuse a request outright, and it
is why this shape is used rather than a pair of before and after hooks. A
hook that ran before could only edit the request, never stop it.
Read the signature
- This declaration has no value signature because it introduces a type or trait.
