HTTP transport
Purpose
HTTP transport for browser or Node.
Installation
For browser
npm install @erebos/transport-http-browser
For Node
npm install @erebos/transport-http-node
Usage
import { createTransport } from '@erebos/transport-http-browser'
const request = createTransport('http://localhost')
request({ hello: 'transport' }).then(console.log)
API
createTransport()
Arguments
url: string
Returns (data: any) => Promise<any>