Download ADOOR_ACE/node_modules/express-http-proxy/app/steps/maybeSkipToNextHandler.js from thisisAce/adoor-store: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/thisisAce/adoor-store/resolve/main/ADOOR_ACE/node_modules/express-http-proxy/app/steps/maybeSkipToNextHandler.js
- Command line
-
hf download hf://thisisAce/adoor-store/ADOOR_ACE/node_modules/express-http-proxy/app/steps/maybeSkipToNextHandler.js
-
curl -L -o maybeSkipToNextHandler.js https://huggingface.co/thisisAce/adoor-store/resolve/main/ADOOR_ACE/node_modules/express-http-proxy/app/steps/maybeSkipToNextHandler.js
571 Bytes
| ; | |
| function defaultSkipFilter(/* res */) { | |
| return false; | |
| } | |
| function maybeSkipToNextHandler(container) { | |
| var resolverFn = container.options.skipToNextHandlerFilter || defaultSkipFilter; | |
| return Promise | |
| .resolve(resolverFn(container.proxy.res)) | |
| .then(function (shouldSkipToNext) { | |
| if (shouldSkipToNext) { | |
| container.user.res.expressHttpProxy = container.proxy; | |
| return Promise.reject(container.user.next()); | |
| } else { | |
| return Promise.resolve(container); | |
| } | |
| }); | |
| } | |
| module.exports = maybeSkipToNextHandler; | |