@mainframe/transport-http-browser
HTTP transport for browser
Last updated 2 years ago by paul_lecam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mainframe/transport-http-browser 
SYNC missed versions from official npm registry.

transport-http-browser

HTTP transport for browser.

Installation

yarn add @mainframe/transport-http-browser

Usage

import httpTransport from '@mainframe/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

Current Tags

  • 0.2.0                                ...           latest (2 years ago)

3 Versions

  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |