chi icon indicating copy to clipboard operation
chi copied to clipboard

Add Clone method to Context

Open BlakeWilliams opened this issue 2 months ago • 0 comments

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

BlakeWilliams avatar Nov 05 '25 17:11 BlakeWilliams