Is your feature request related to a problem? Please describe.
I'd love to have a way to push data to the webview in a streaming fashion, whether server sent events or websockets. This got discussed in https://github.com/tauri-apps/wry/issues/420, but is distinctly different as that issue was about asynchronously returning a singular response.
Describe the solution you'd like
Accept Response<Stream<Item = Vec<u8>>> in some manner.
Is your feature request related to a problem? Please describe.
I'd love to have a way to push data to the webview in a streaming fashion, whether server sent events or websockets. This got discussed in https://github.com/tauri-apps/wry/issues/420, but is distinctly different as that issue was about asynchronously returning a singular response.
Describe the solution you'd like
Accept
Response<Stream<Item = Vec<u8>>>
in some manner.Response
(fromhttp
) can already accept aStream
Where it goes awry is on response via the
RequestAsyncResponder
, which requires aResponse<Into<Cow<'static, [u8]>>>
.