carvalhorr / protoc-gen-mock

47 stars 11 forks source link

Add support for mocking streaming requests/responses #3

Open carvalhorr opened 4 years ago

mattharrigan commented 4 years ago

a related feature request is to be able to post to the rest api to trigger a server streamed message. Assuming the following:

rpc LotsOfReplies(HelloRequest) returns (stream HelloResponse);

I would like to set the stub to return "hello", then post a rest message that causes the server to send "please stop bothering me". that would be very useful for testing some of my clients.

Great module. Thank you very much.