Socket
Socket
Sign inDemoInstall

postman-request

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-request - npm Package Compare versions

Comparing version 2.88.1-postman.22 to 2.88.1-postman.23

3

lib/tunnel.js

@@ -85,3 +85,4 @@ 'use strict'

secureOptions: request.secureOptions,
secureProtocol: request.secureProtocol
secureProtocol: request.secureProtocol,
extraCA: request.extraCA
}

@@ -88,0 +89,0 @@

@@ -10,3 +10,3 @@ {

],
"version": "2.88.1-postman.22",
"version": "2.88.1-postman.23",
"repository": {

@@ -13,0 +13,0 @@ "type": "git",

@@ -952,2 +952,14 @@

- `agentOptions` - and pass its options. **Note:** for HTTPS see [tls API doc for TLS/SSL options](http://nodejs.org/api/tls.html#tls_tls_connect_options_callback) and the [documentation above](#using-optionsagentoptions).
- `agents` - Specify separate agent instances for HTTP and HTTPS requests. Required in case of HTTP to HTTPS redirects and vice versa. For example:
```js
request.defaults({
agents: {
http: new http.Agent(),
https: {
agentClass: https.Agent,
agentOptions: { keepAlive: true }
}
}
})
```
- `forever` - set to `true` to use the [forever-agent](https://github.com/request/forever-agent) **Note:** Defaults to `http(s).Agent({keepAlive:true})` in node 0.12+

@@ -1090,3 +1102,3 @@ - `pool` - an object describing which agents to use for the request. If this option is omitted the request will use the global agent (as long as your options allow for it). Otherwise, request will search the pool for your custom agent. If no custom agent is found, a new agent will be created and added to the pool. **Note:** `pool` is used only when the `agent` option is not specified.

// print the Content-Type header even if the server returned it as 'content-type' (lowercase)
console.log('Content-Type is:', response.caseless.get('Content-Type'));
console.log('Content-Type is:', response.caseless.get('Content-Type'));
});

@@ -1093,0 +1105,0 @@ ```

@@ -555,2 +555,15 @@ 'use strict'

// prefer common self.agent if exists
if (self.agents && !self.agent) {
var agent = protocol === 'http:' ? self.agents.http : self.agents.https
if (agent) {
if (agent.agentClass || agent.agentOptions) {
options.agentClass = agent.agentClass || options.agentClass
options.agentOptions = agent.agentOptions || options.agentOptions
} else {
self.agent = agent
}
}
}
if (!self.agent) {

@@ -557,0 +570,0 @@ if (options.agentOptions) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc