Neologistic Paraphasic Mumbling

    popsicle-transport-xhr
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    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

    Install

    npm i popsicle-transport-xhr

    DownloadsWeekly Downloads

    56,575

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    24.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • blakeembrey