fermyon / leptos-spin

Template for server-side Leptos apps on Spin
32 stars 6 forks source link

Cloning IncomeRequest #15

Closed benwis closed 10 months ago

benwis commented 10 months ago

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

benwis commented 10 months ago

Missed some stuff, I'll work this out