Send Requests
Call a Unary Method
grpc :50051 UnaryMethod '{"name": "Bob"}'
Output:
content-type: application/grpc
{ "message": "Hello, Bob!"}
status-code: 0 (OK)
Call a Client Streaming Method
grpc :50051 ClientStreamingMethod '{"name": "Bob"}{"name": "Alice"}'
or
grpc :50051 ClientStreamingMethod '{"name": "Bob"}' '{"name": "Alice"}'
Output:
content-type: application/grpc
{ "message": "Hello, Bob + Alice!"}
status-code: 0 (OK)
Call a Server Streaming Method
grpc :50051 ServerStreamingMethod '{"name": "Bob"}'
Output:
content-type: application/grpc
{ "message": "Hello, "}
{ "message": "B"}
{ "message": "o"}
{ "message": "b"}
{ "message": "!"}
status-code: 0 (OK)
Call a Bidirectional Streaming Method
grpc :50051 BidirectionalStreamingMethod '{"name": "Bob"}{"name": "Alice"}'
or
grpc :50051 BidirectionalStreamingMethod '{"name": "Bob"}' '{"name": "Alice"}'
Output:
content-type: application/grpc
{ "message": "Hello, Bob!"}
{ "message": "Hello, Alice!"}
status-code: 0 (OK)