UNPKG

sync-request-curl

Version:

Fast way to send synchronous web requests in NodeJS. API is a subset of sync-request. Leverages node-libcurl for high performance. Cannot be used in a browser.

7 lines (6 loc) 408 B
var e=class e extends Error{constructor(t,n){if(super(n),t<1||t>99)throw Error(` CurlError code must be between 1 and 99. Given: ${t}. Please take a look at the resource below for valid Libcurl errors: - https://curl.se/libcurl/c/libcurl-errors.html `);this.code=t,Object.setPrototypeOf(this,e.prototype)}};export{e as t}; //# sourceMappingURL=errors-DAhwmOTl.mjs.map