an-tao / trantor

a non-blocking I/O tcp network lib based on c++14/17
Other
390 stars 133 forks source link

Simplify the code for sending data #308

Open an-tao opened 9 months ago

tripleslash commented 9 months ago

@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

an-tao commented 9 months ago

@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.