With caddy v1.0.3, is it possible to chain middlewares?
I’ve seen a comment for the Caddyfile that nested blocks are not allowed but the ServeHTTP signature and the AddMiddleware method are designed to let one middleware call another and then deal with the result.
The http.upload middleware is of particular interest to me. It can take a POST and create local files based on its configuration but is not designed to return a redirect or any indication to the user other than a return code like 201 or 204. It does return the http status codes per the ServeHTTP signature without writing them out so it is a higher level that writes the return code. How would an upper layer of middleware be
provisioned with a Caddyfile to write a body response?