Popsicle Transport XHR
Popsicle transport for sending requests over
XMLHttpRequest
.
Installation
npm install popsicle-transport-xhr --save
Usage
; const req = "/";const res = await 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