Lifecycle hooks for the FetchEngine request pipeline.
beforeRequest hooks run before the network request. They can modify the
URL/options via ctx.args(), short-circuit with a cached response via
ctx.returns(), or abort with ctx.fail().
afterRequest hooks run after a successful response. They can replace the
response via ctx.returns() or abort with ctx.fail().
Lifecycle hooks for the FetchEngine request pipeline.
beforeRequesthooks run before the network request. They can modify the URL/options viactx.args(), short-circuit with a cached response viactx.returns(), or abort withctx.fail().afterRequesthooks run after a successful response. They can replace the response viactx.returns()or abort withctx.fail().