0.10.0 • Published 5 years ago

@erebos/transport-http-browser v0.10.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

transport-http-browser

HTTP transport for browser.

Installation

yarn add @erebos/transport-http-browser

Usage

import httpTransport from '@erebos/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