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

@qpoint/proxy

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qpoint/proxy

A Qpoint adapter for proxying requests from the edge

  • 0.2.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

qpoint-proxy

A Qpoint adapter for proxying requests from the edge

Usage

import Endpoint from "@qpoint/endpoint";
import proxy from "@qpoint/proxy";

export default new Endpoint()
  .use(proxy({ appUrl: "https://qpoint.io" }))

Installation

npm add @qpoint/proxy

Config

appUrl sets the upstream app url to forward requests

redirect will indicate to redirect the request instead of proxy by default

urlStrategy determines how to construct the proxy request url (see below)

Url Strategy

The URL Strategy determines how to construct the proxy request URL. The following modes are supported:

mask takes the incoming url and replaces only the origin domain from the appUrl. This is the default settings and the most likely strategy you'll want to use when proxying.

mirror uses the appUrl directly and doesn't do any modifications. This is mostly beneficial if using this adapter as a redirect, and you want all requests to be redirected to the same location. It can also be used during proxy but beware that all requests will end up at the same upstream url regardless of the incoming path which may be confusing behavior.

FAQs

Package last updated on 05 Jan 2024

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

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