trantor icon indicating copy to clipboard operation
trantor copied to clipboard

Simplify the code for sending data

Open an-tao opened this issue 1 year ago • 2 comments

an-tao avatar Dec 15 '23 15:12 an-tao

@an-tao If you're doing a rewrite on this, is it possible you design it with support for asynchronous newStreamResponse in mind? Would allow for example server-sent events as mentioned here: https://github.com/drogonframework/drogon/issues/1587

tripleslash avatar Dec 16 '23 14:12 tripleslash

@an-tao If you're doing a rewrite on this, is it possible you design it with support for asynchronous newStreamResponse in mind? Would allow for example server-sent events as mentioned here: drogonframework/drogon#1587

Yes, I'm considering providing a new API for this. drogonframework/drogon#1833, this is a recent solution, it also requires Trantor’s new API.

an-tao avatar Dec 16 '23 15:12 an-tao