popsicle-transport-xhr
Popsicle transport for sending requests over `XMLHttpRequest`
Last updated 5 years ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install popsicle-transport-xhr 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (4 years ago)

4 Versions

  • 2.0.0                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (13)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE