Socket
Socket
Sign inDemoInstall

popsicle-transport-xhr

Package Overview
Dependencies
4
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    popsicle-transport-xhr

Popsicle transport for sending requests over `XMLHttpRequest`


Version published
Maintainers
1
Created

Readme

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

Last updated on 15 Jun 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc