GithubHelp home page GithubHelp logo

rpcjson's People

Contributors

hexatridecimal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rpcjson's Issues

Update

@jjeffus Maybe an update on the code is required? There are some pull requests still pending.

HTTP keep-alive, HTTP pipelining, JSON-RPC 2.0 batches

I like the convenient of the rpcjson gem over setting everything up manually with something like net/http, but I need the performance benefits of HTTP keep-alive, HTTP pipelining, and JSON-RPC 2.0 batches. Are any of these supported, or planned for the future?

(It looks like a dead project, but there aren't any competitors, so thought I'd try my luck.)

Wrong params format for JSONRPC 2.0 calls

If I do:

  s = RPC::JSON::Client.new 'http://example.com/api', 2.0
  s.myethod( source: 'apple', anum: 1 )

The JSON body I receive at the server looks like this:

{"jsonrpc":"2.0","method":"myethod","id":1,"params":[{"source":"apple","anum":1}]}

However, as I understand the 2.0 spec at http://www.jsonrpc.org/specification
the positional parameters shouldn't be in an array. Hence it should send:

{"jsonrpc":"2.0","method":"myethod","id":1,"params":{"source":"apple","anum":1}}

Otherwise, thanks for a nice simple & tight little gem.
Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.