@mainframe/rpc-http-browser

HTTP RPC for browser

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/rpc-http-browser
110.2.03 years ago3 years agoMinified + gzip package size for @mainframe/rpc-http-browser in KB

Readme

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

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.