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

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

Current Tags

  • 0.10.0                                ...           latest (a year ago)

1 Versions

  • 0.10.0                                ...           a year ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |