popsicle-transport-xhr
v2.0.0
Published
Popsicle transport for sending requests over `XMLHttpRequest`
Downloads
373,931
Maintainers
Readme
Popsicle Transport XHR
Popsicle transport for sending requests over
XMLHttpRequest.
Installation
npm install popsicle-transport-xhr --saveUsage
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?: XMLHttpRequestResponseTypeOverride response typewithCredentials?: booleanEnablewithCredentialsoverrideMimeType?: stringOverride MIME type
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
MIT
