ntex-rs / ntex

framework for composable networking services
Apache License 2.0
1.98k stars 108 forks source link

SSE integration #268

Closed GPeaky closed 9 months ago

GPeaky commented 9 months ago

Hi, ntex have support for Server Side Events? and if it's not is there any plan of implement it?

GPeaky commented 9 months ago

Or Http2 Streams (sorry i am a noob 😞)

leon3s commented 9 months ago

Hey yes, both are supported I believe for SSE you can look at here

fafhrd91 commented 9 months ago

sse does not require any specific implementation

fafhrd91 commented 9 months ago

http2 streams are supported as well

GPeaky commented 9 months ago

Is there any example of streams? SSE only supports text and i need to send binary data. And thanks for the response :)

fafhrd91 commented 9 months ago

same example as for sse, just change response content-type and make sure you connects with http2 client