kitex icon indicating copy to clipboard operation
kitex copied to clipboard

Feature Proposal: kitexcall command for sending json generic requests

Open felix021 opened this issue 10 months ago • 4 comments

Please help implement a command line tool for sending json generic requests to Kitex Servers.

Suggests features:

  • Support Thrift/Protobuf Payload
  • Support TTHeader/Framed (also TTHeader/Framed) Transport
  • Support specifying frequently used client options (client.WithHostPorts, client.WithRPCTimeout, etc.)
  • Support metainfo (headers), both transient keys and persistent keys, and listing backward keys in the response to output.
  • Accept request data from command line arg or a local file
  • Support both human readable (by default) or Parsable output response (call status, rpc response, etc., json format preferred), making it better for script-based tools)

If you are interested in implementing this feature, please kindly prepare a detailed tech plan and reply with your lark id for us.

felix021 avatar Apr 18 '24 05:04 felix021

You can also take a look at grpcurl, which is of similar purpose.

Note: currently Kitex does not have builtin support of reflection server, so users have to manually specify the IDL. But we've plan for this and once it's implemented, this feature can then be integrated into kitexcall.

felix021 avatar Apr 18 '24 06:04 felix021

Can you assign it to me please? I want to try it. The technical plan will be sent to you later.

Zzhiter avatar Apr 19 '24 01:04 Zzhiter

Can you assign it to me please? I want to try it. The technical plan will be sent to you later.

Please reply with your lark account

felix021 avatar Apr 19 '24 08:04 felix021

Can you assign it to me please? I want to try it. The technical plan will be sent to you later.

Please reply with your lark account

OK, thanks. I am in the Cloudwego Lark Group, I have sent you a friend request. Or my account: https://www.feishu.cn/invitation/page/add_contact/?token=5b7gab67-dddd-42a4-93d5-cd2441b59833&unique_id=lSWTsPYII_yaxHM80y-SNw==

Zzhiter avatar Apr 19 '24 08:04 Zzhiter

Implemented in https://github.com/kitex-contrib/kitexcall/pull/1

felix021 avatar May 23 '24 13:05 felix021