@mainframe/transport-http-browser
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

transport-http-browser

HTTP transport for browser.

Installation

yarn add @mainframe/transport-http-browser

Usage

import httpTransport from '@mainframe/transport-http-browser'

const transport = httpTransport('http://localhost')

transport.request({ hello: 'transport' }).then(console.log)

API

httpTransport()

Arguments

  1. url: string

Returns (data: Object) => Promise<any>

License

MIT

/@mainframe/transport-http-browser/

    Package Sidebar

    Install

    npm i @mainframe/transport-http-browser

    Weekly Downloads

    0

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    4.66 kB

    Total Files

    6

    Last publish

    Collaborators

    • aclarke
    • diogoperillo
    • howleysv
    • mosic
    • paul_lecam
    • sarahwiley