Popsicle transport for sending requests over
XMLHttpRequest
.
npm install popsicle-transport-xhr --save
import { transport } from "popsicle-transport-xhr";
const req = new Request("/");
const res = await transport()(req, done);
The transport
function sends the Servie Request
to a remote server.
type?: XMLHttpRequestResponseType
Override response typewithCredentials?: boolean
EnablewithCredentials
overrideMimeType?: string
Override MIME type
This project is written using TypeScript and publishes the definitions directly to NPM.
MIT