ZijianHe / koa-router

Router middleware for koa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request - add optional body to ctx.redirect(url)

nhhockeyplayer opened this issue · comments

Feature request - add optional body to ctx.redirect(url)

I invoke one request from browser to back end with a database model on the body
my request spawns 5000 new models

rather than go back to front end to resubmit a request per model
I would prefer to attach a new body per-redirect to the destination while I am already on the back end performing the redirect

can this optional attachable request body replacement be implemented?

Is there a workaround to make this happen now?

thank you