I'm using a strict chi server.
ChiServerOptions takes a slice of middleware, []MiddleWareFunc. When these are applied they're chained in the order of the slice, meaning that the middleware executes last to first.
I'd expect them to be executed first to last, as most other Go middleware chains do (by iterating through the slice in reverse order).
I'm using a strict chi server.
ChiServerOptions takes a slice of middleware, []MiddleWareFunc. When these are applied they're chained in the order of the slice, meaning that the middleware executes last to first.
I'd expect them to be executed first to last, as most other Go middleware chains do (by iterating through the slice in reverse order).