@mainframe/transport-http-browser
v0.2.0
Published
HTTP transport for browser
Downloads
47
Keywords
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
url: string
Returns (data: Object) => Promise<any>
License
MIT