@mainframe/transport-http-node

HTTP transport for node

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/transport-http-node
110.2.03 years ago4 years agoMinified + gzip package size for @mainframe/transport-http-node in KB

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

  1. url: string

Returns (data: Object) => Promise<any>

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.