It allows koajs handle http-proxy-middleware, awaiting end of transaction from proxy, if you don't handle it, response will be emitted before end of proxy request.
Description
Allow handle propperly end of remote connection before emit response to client.
It allows koajs handle http-proxy-middleware, awaiting end of transaction from proxy, if you don't handle it, response will be emitted before end of proxy request.
Description
Allow handle propperly end of remote connection before emit response to client.
Motivation and Context
Koajs compability
How has this been tested?
const app = new koa(); app.use(async ({req,res},next)=>{ const Proxy = createProxyMiddleware(options); await Proxy(req,res,next); }});
Types of changes
Checklist: