Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any idea to implement interactive RSocket client alike http-prompt #87

Open
linux-china opened this issue Mar 15, 2021 · 2 comments
Open

Comments

@linux-china
Copy link
Contributor

linux-china commented Mar 15, 2021

interactive command-line for RSocket client :) https://http-prompt.com/

$ rsc--debug tcp://localhost:7001
tcp://localhost:7001> request word.uppercase Foo
tcp://localhost:7001> use request 
tcp://localhost:7001> word.uppercase Foo
tcp://localhost:7001> cd word
tcp://localhost:7001> uppercase Foo
tcp://localhost:7001> env
use request
cd word
content-type: application/json
tcp://localhost:7001> use uppercase
tcp://localhost:7001> send Foo
tcp://localhost:7001> send '{"x":10, "y":20}'
tcp://localhost:7001> send @demo.json

RSocket Headers:

  • content-type
  • authentication: auth basic name password ; auth bearer xxxx

Commands:

  • rsocket request model commands: request, fire, stream, channel, push
  • use: switch request model, values are request, fire, stream, channel, push
  • cd: change route key prefix
  • send: send the data to destination again
  • env: display connection information
  • rsc: rsc cli request "rsc --request --route=uppercase --data=Foo --debug tcp://localhost:7001"
@linux-china linux-china changed the title Any idea to implement interactive RSocket client alike http-prompt.com Any idea to implement interactive RSocket client alike http-prompt Mar 15, 2021
@making
Copy link
Owner

making commented Mar 25, 2021

The HTTP prompt is new to me. At first glance, it doesn't seem to convince me. Is it that convenient?

@linux-china
Copy link
Contributor Author

HTTP prompt is nice idea, but it's hard for automation. gRPC has same production and that is https://github.com/ktr0731/evans I'm not sure that it' good or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants