angular-jsonrpc-client:AngularJS的JSON-RPC 2.0客户端

时间:2021-04-27 14:22:44
【文件属性】:
文件名称:angular-jsonrpc-client:AngularJS的JSON-RPC 2.0客户端
文件大小:23KB
文件格式:ZIP
更新时间:2021-04-27 14:22:44
JavaScript 介绍 angular-jsonrpc-client提供了一个可配置的客户端,以通过HTTP对一个或多个服务器执行调用。 JSON-RPC是一种协议,在该协议中,您将带有方法名称和方法参数的JSON对象发送到服务器,并获得操作结果的响应。 假设您发送以下JSON: { "jsonrpc": "2.0", "id": "1", "method": "buy_fruit", "params": { "type": "banana", "amount": 42 } } 服务器可能会使用以下对象进行回复: { "jsonrpc": "2.0", "id": "1", "result": {
【文件预览】:
angular-jsonrpc-client-master
----.gitignore(30B)
----package.json(1KB)
----src()
--------angular-jsonrpc-client.js(11KB)
----karma.conf.js(2KB)
----.travis.yml(205B)
----Gruntfile.js(658B)
----LICENSE(1KB)
----spec()
--------angular-jsonrpc-client.spec.js(26KB)
----README.md(12KB)
----example()
--------example-batch.html(3KB)
--------jsonrpc.server.js(3KB)
--------example-http-promise.html(3KB)
--------example-progress-callback.html(4KB)
--------example-headers.html(3KB)
--------example-normal.html(2KB)
--------example-cancel-request.html(3KB)
--------example-multiple-backends.html(3KB)
----bower.json(293B)

网友评论