Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gohttp

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gohttp - npm Package Compare versions

Comparing version 5.0.6 to 5.0.7

6

gohttp.js

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

function setOptsQuery (opts, options) {
function setOptsQuery(opts, options) {
if (options.query) {

@@ -588,3 +588,3 @@ let qstr;

function _hiicompat (url, options, t) {
function _hiicompat(url, options, t) {
if (!(this instanceof _hiicompat)) {

@@ -686,3 +686,3 @@ return new _hiicompat(url, options, t);

function setOptions (opts, method, resetMethod = false) {
function setOptions(opts, method, resetMethod = false) {
for (let k in this.urlobj) {

@@ -689,0 +689,0 @@ if (k === 'headers' || k === 'method' || k === 'path')

@@ -11,3 +11,3 @@ 'use strict';

function parseUrl (url) {
function parseUrl(url) {

@@ -96,3 +96,3 @@ let urlobj = new urlparse.URL(url);

async function payload (reqobj, mkbody) {
async function payload(reqobj, mkbody) {
let needbody = false

@@ -201,3 +201,3 @@ if (reqobj.method[0] === 'P') {

async function _download (stream, reqobj, ret, bkey) {
async function _download(stream, reqobj, ret, bkey) {

@@ -688,3 +688,3 @@ if (!reqobj.dir) {

class sessionPool {
class SessionPool {

@@ -947,3 +947,3 @@ constructor(options = {}) {

let sp = new sessionPool({max : max})
let sp = new SessionPool({max : max})

@@ -950,0 +950,0 @@ delete options.max

@@ -36,3 +36,3 @@ 'use strict'

function fmtpath (path) {
function fmtpath(path) {
path = path.trim()

@@ -471,3 +471,2 @@ if (path.length == 0) {

module.exports = hiiproxy
{
"name": "gohttp",
"version": "5.0.6",
"version": "5.0.7",
"description": "http & https client for HTTP/1.1 and HTTP/2",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -422,4 +422,11 @@

基于对http2的封装以及连接池的处理,实现了基于http2连接池模式的反向代理。这可能是目前唯一一个支持HTTP/2协议以及连接池和自动重连并且支持负载均衡的反向代理。
基于对http2的封装以及连接池的处理,实现了基于http2连接池模式的反向代理。这可能是目前唯一一个在Node.js领域支持:
- HTTP/2协议
- 连接池
- 自动重连
- 负载均衡
的反向代理。
使用示例:

@@ -426,0 +433,0 @@

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