Timeout as a middleware. This might be the first plugin that could be used across front-end and back-end, and it's a lot more configurable as middleware (e.g. set the timeout after the caching plugin runs, or after the retry plugin to set a timeout on each retry attempt). Can listen to request#response event, request#finished event, response#finished event or just wait for the upstream to return (e.g. timeout everything below this function).
Timeout as a middleware. This might be the first plugin that could be used across front-end and back-end, and it's a lot more configurable as middleware (e.g. set the timeout after the caching plugin runs, or after the retry plugin to set a timeout on each retry attempt). Can listen to
request#responseevent,request#finishedevent,response#finishedevent or just wait for the upstream to return (e.g. timeout everything below this function).