New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

exframe-proxy

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exframe-proxy

exframe-proxy description

latest
Source
npmnpm
Version
1.0.14
Version published
Maintainers
1
Created
Source

exframe-proxy

Wraps http-proxy

Usage

const Proxy = require('exframe-proxy');
const { proxyRestRequest } = Proxy(configuration);

Configuration Settings

Configuration supports all options found within http-proxy, listed here: https://github.com/http-party/node-http-proxy#options

Methods

proxyRestRequest

Starts polling the database for actions that need to be executed.

proxyRestRequest(req, res, { target: 'http://localhost:3001' });

Arguments:

  • req Request A Request object
  • res Response A Response object
  • httpProxyOptions Object The same arguments listed above in Configuration Settings are available to pass in here
    • Note: changeOrigin defaults to true

getProxyHeaders

Expects a request as an input and outputs a dictionary of the following headers if they exist on the request.

  • Content-Type
  • Content-Encoding
  • Content-Language
  • Content-Location
const { getProxyHeaders } = Proxy(configuration);
const headers = getProxyHeaders(req);

Arguments

  • req Request A Request object

FAQs

Package last updated on 26 Feb 2026

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