Socket
Socket
Sign inDemoInstall

popsicle-transport-xhr

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popsicle-transport-xhr

Popsicle transport for sending requests over `XMLHttpRequest`


Version published
Weekly downloads
120K
increased by0.49%
Maintainers
1
Weekly downloads
 
Created
Source

Popsicle Transport XHR

NPM version NPM downloads Build status Test coverage

Popsicle transport for sending requests over XMLHttpRequest.

Installation

npm install popsicle-transport-xhr --save

Usage

import { transport } from "popsicle-transport-xhr";

const req = new Request("/");
const res = await transport()(req, done);

Transport Options

The transport function sends the Servie Request to a remote server.

  • type?: XMLHttpRequestResponseType Override response type
  • withCredentials?: boolean Enable withCredentials
  • overrideMimeType?: string Override MIME type

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

MIT

Keywords

FAQs

Package last updated on 07 Oct 2020

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