chi
chi copied to clipboard
Add Clone method to Context
This adds the ability to clone Chi contexts so that they may be used outside of the request/response lifecycle.
This is useful in scenarios where the context may be held after a request has been served to a user, like asynchronous background tasks, mirror testing, etc.
This is a follow-up and replacement of https://github.com/go-chi/chi/pull/1028