Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

clientlinker-flow-httpproxy

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clientlinker-flow-httpproxy

Httpproxy flow for clientlinker

latest
Source
npmnpm
Version
7.4.0
Version published
Weekly downloads
564
7957.14%
Maintainers
1
Weekly downloads
 
Created
Source

Clientlinker-flow-httpproxy

NPM Version NPM Downloads NPM License Install Size

Install

Install clientlinker pkg

npm i clientlinker --save

Install flow pkg

npm i clientlinker-flow-httpproxy --save

Usage

var clientlinker = require('clientlinker');
var linker = clientlinker({
  flows: ['confighandler', 'httpproxy'],
  defaults: {
    httpproxy: 'http://localhost/clientlinker_proxy',
    httpproxyMaxLevel: 5,
    httpproxyProxy: 'http://127.0.0.1:8888' || false,
    httpproxyHeaders: {},
    httpproxyKey: 'aeskey',
    httpproxyKeyRemain: 5000,
    httpproxyEnableUniqKey: null,   // null / false / true
  },
  clients: {
    client: {
      confighandler: {
        clientHanlder: function(query, body, callback, options) {
          return Promise.resolve({result: {}});
        }
      }
    }
  }
});

linker.flow('confighandler', require('clientlinker-flow-confighandler'));
linker.flow('httpproxy', require('clientlinker-flow-httpproxy'));

// use
linker.run('client.clientHanlder', null, {id: 13})
  .then(function(){});

Keywords

clientlinker

FAQs

Package last updated on 18 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts