Skip to content

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

@linux-china

Description

@linux-china

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions