request-libcurl
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "request-libcurl", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Extremely stable HTTP request module built on top of libcurl", | ||
@@ -38,3 +38,3 @@ "main": "index.js", | ||
"chai": "^4.2.0", | ||
"mocha": "^6.2.1" | ||
"mocha": "^6.2.2" | ||
}, | ||
@@ -41,0 +41,0 @@ "dependencies": { |
@@ -23,3 +23,3 @@ # Request-libcurl | ||
- 😎 Follow or deny redirects; | ||
- 📤 Upload files with a single line; | ||
- 📤 [Upload files with a single line](https://github.com/VeliovGroup/request-extra#file-upload); | ||
- 🔐 Ignore or deny "broken" SSL/TLS certificates; | ||
@@ -124,2 +124,3 @@ - 💪 Bulletproof design, during development we avoid complex solutions. | ||
rejectUnauthorized: false, | ||
rejectUnauthorizedProxy: false, | ||
badStatuses: [ 300, 303, 305, 400, 407, 408, 409, 410, 500, 502, 503, 504, 510 ], | ||
@@ -168,5 +169,5 @@ isBadStatus(statusCode, badStatuses = request.defaultOptions.badStatuses) { | ||
- `opts.isBadStatus` {*Function*} - [Optional] Function responsible for triggering request retries, [default (*at the bottom of code-block*)](https://github.com/VeliovGroup/request-extra#request-default-options); | ||
- `opts.rawBody` {*Boolean*} - Disable all data processing (`body` will be passed as *Buffer*, `headers` will be empty, use `.onHeaders()` hook to get headers with `rawBody` option), great option for *piping*, default: `false`; | ||
- `opts.rawBody` {*Boolean*} - Disable all data processing (`body` will be passed as *Buffer*, `headers` will be empty, use `.onHeader()` hook to get headers with `rawBody` option), great option for *piping*, default: `false`; | ||
- `opts.noStorage` {*Boolean*} - Disable all data processing and data concatenation (`headers` and `body` won't be passed to response), great option for *piping*, default: `false`; | ||
- `opts.wait` {*Boolean*} - Do not send request immediately and wait until `.send()` method is called, set this option to `true` to register `.onHeaders()` and `.onBody()` hooks, default: `false`; | ||
- `opts.wait` {*Boolean*} - Do not send request immediately and wait until `.send()` method is called, set this option to `true` to register `.onHeader()` and `.onBody()` hooks, default: `false`; | ||
- `opts.proxy` {*String*} - Fully qualified URL to HTTP proxy, when this feature is enabled connections are going to start with `CONNECT` request, default: no proxy or system proxy is used; | ||
@@ -180,6 +181,6 @@ - `opts.rejectUnauthorized` {*Boolean*} - [Optional] Shall request be rejected if SSL/TLS certificate can't be validated? Default: `false`; | ||
- When using `opts.rawBody` callback won't return `headers`, to get headers use `onHeaders` hook; | ||
- When using `opts.noStorage` callback won't return `headers` and `body`, to get headers and body use `onData` and `onHeaders` hooks; | ||
- When using `opts.rawBody` callback won't return `headers`, to get headers use `onHeader` hook; | ||
- When using `opts.noStorage` callback won't return `headers` and `body`, to get headers and body use `onData` and `onHeader` hooks; | ||
- `opts.upload` and `opts.form` __can not be used together__, there won't be exception thrown, if both presented — `opts.form` will be used; | ||
- When using `opts.upload` or __any other request where server returns__ `expect: '100-continue'` HTTP header — callback won't return `headers`, to get headers use `onHeaders` hook; | ||
- When using `opts.upload` or __any other request where server returns__ `expect: '100-continue'` HTTP header — callback won't return `headers`, to get headers use `onHeader` hook; | ||
- This package is build on top of [`libcurl`](https://curl.haxx.se/libcurl/) and [`node-libcurl`](https://github.com/JCMais/node-libcurl) it's the way much more powerful than just sending requests via `http` and `https` protocol. Libcurl can work with IMAP/SMTP protocols getting/sending emails. Libcurl can serve as fully-featured FTP-client. Here's full list of supported protocols: `DICT`, `FILE`, `FTP`, `FTPS`, `Gopher`, `HTTP`, `HTTPS`, `IMAP`, `IMAPS`, `LDAP`, `LDAPS`, `POP3`, `POP3S`, `RTMP`, `RTSP`, `SCP`, `SFTP`, `SMTP`, `SMTPS`, `Telnet` and `TFTP`. To learn more on how to utilize all available power and features see docs of [`node-libcurl`](https://github.com/JCMais/node-libcurl#node-libcurl) and [`libcurl`](https://curl.haxx.se/libcurl/) itself. | ||
@@ -186,0 +187,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
415
0
31342
6