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

rpc-http-browser

rpc-request factory using transport-http-browser.

Installation

yarn add @mainframe/rpc-http-browser

Usage

import httpRPC from '@mainframe/rpc-http-browser'

const rpc = httpRPC('http://localhost')

rpc.request('getUser', ['1234']).then(console.log)

API

httpRPC()

Arguments

  1. url: string

Returns RequestRPC

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 2
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |