graze / guzzle-jsonrpc

JSON-RPC 2.0 client for Guzzle
https://packagist.org/packages/graze/guzzle-jsonrpc
MIT License
93 stars 61 forks source link

Using differnet url paths after client object is created #29

Closed prasanthsd closed 6 years ago

prasanthsd commented 7 years ago

Hi,

I tried using this with a RPC server which has different URL paths for certain methods. For example when im executing "method1" the url maybe http://domain/login and when in other cases it maybe http://domain/execute

Does this package support this or will this be added sometime in the future?

h-bragg commented 7 years ago

Hi,

Sorry for the looooong delay; I have recently started maintaining this project.

This is not supported very nicely out of the box.

You could either:

These obviously will not work with batched requests if you are attempting to send to different endpoints.