@mainframe/transport-http-node
v0.2.0
Published
HTTP transport for node
Downloads
10
Keywords
Readme
transport-http-node
HTTP transport for node.
Installation
yarn add @mainframe/transport-http-node
Usage
import httpTransport from '@mainframe/transport-http-node'
const transport = httpTransport('http://localhost')
transport.request({ hello: 'transport' }).then(console.log)
API
httpTransport()
Arguments
url: string
Returns (data: Object) => Promise<any>
License
MIT