Popsicle Transport XHR
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 typewithCredentials?: boolean
EnablewithCredentials
overrideMimeType?: string
Override MIME type
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
MIT