Skip to content

Latest commit

 

History

History

transport-http-browser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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