@mainframe/transport-http-browser

HTTP transport for browser

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/transport-http-browser
110.2.03 years ago4 years agoMinified + gzip package size for @mainframe/transport-http-browser in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.