Is there any desire to include a sort of middleware dns.HandlerFunc which provides support for request timeouts via a request context?
It's a pretty straightforward thing to make and I've pulled something together which I'm happy to contribute via a PR (and get rid of my pkg). Let me know if there's any interest and I'll open a PR.
coredns implements a whole bunch of middlewares, I don't think it makes sense to pull more into this package. I mean if we pull this in, where do we stop?
Is there any desire to include a sort of middleware dns.HandlerFunc which provides support for request timeouts via a request context?
It's a pretty straightforward thing to make and I've pulled something together which I'm happy to contribute via a PR (and get rid of my pkg). Let me know if there's any interest and I'll open a PR.
Here's what I'm proposing to contribute: github.com/jimlambrt/respwriter