So I was looking at the IncomingRequest type in the spin_sdk, and I must admit I'm not sure how this could be cloned for the Context. In the past Actix implemented Clone, and Axum didn't, so we consumed it's Request using into_parts(), cloned the clonable bits, and then recreated the Request.
I don't see a great way to do either of those things for Spin. Any advice? I can move this to an issue in Spin if you'd prefer
So I was looking at the IncomingRequest type in the spin_sdk, and I must admit I'm not sure how this could be cloned for the Context. In the past Actix implemented Clone, and Axum didn't, so we consumed it's Request using
into_parts()
, cloned the clonable bits, and then recreated the Request.I don't see a great way to do either of those things for Spin. Any advice? I can move this to an issue in Spin if you'd prefer