You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -148,9 +148,9 @@ You can still use intermediate proxies, the requests will still follow HTTP forw
148
148
`request` supports both streaming and callback interfaces natively. If you'd like `request` to return a Promise instead, you can use an alternative interface wrapper for `request`. These wrappers can be useful if you prefer to work with Promises, or if you'd like to use `async`/`await` in ES2017.
149
149
150
150
Several alternative interfaces are provided by the request team, including:
Also, [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original), which is available from Node.js v8.0 can be used to convert a regular function that takes a callback to return a promise instead.
156
156
@@ -352,7 +352,7 @@ custom `User-Agent` header as well as https.
The `ca` value can be an array of certificates, in the event you have a private or internal corporate public-key infrastructure hierarchy. For example, if you want to connect to https://api.some-server.com which presents a key chain consisting of:
681
681
1. its own public key, which is signed by:
682
-
2. an intermediate "Corp Issuing Server", that is in turn signed by:
682
+
2. an intermediate "Corp Issuing Server", that is in turn signed by:
683
683
3. a root CA "Corp Root CA";
684
684
685
685
you can configure your request as follows:
@@ -947,7 +947,7 @@ Function that returns the specified response header field using a [case-insensit
947
947
```js
948
948
request('http://www.google.com', function (error, response, body) {
949
949
// print the Content-Type header even if the server returned it as 'content-type' (lowercase)
0 commit comments