express-request-proxy icon indicating copy to clipboard operation
express-request-proxy copied to clipboard

Allow passing errorhandler to the npm request module used internally.

Open gautam1168 opened this issue 5 years ago • 0 comments

The npm 'request' module supports passing in a callback function that is called after the request is completed with the result or the error. There is no way to pass this callback/handler currently. This is required because making a call to an non-existent url using express-request-proxy throws an error that cannot be caught by the caller program. I have made a PR to add this: https://github.com/dvonlehman/express-request-proxy/pull/42

gautam1168 avatar Aug 18 '19 04:08 gautam1168