Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 442 Bytes

File metadata and controls

33 lines (19 loc) · 442 Bytes

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