Open jwindgassen opened 2 months ago
With #479, there is now support for proxying a text/event-stream, but not any other stream type (video/data). From what I can tell, this was originally not possible because of the way RewritableResponse works.
text/event-stream
RewritableResponse
But with the new Stream Support, I don't see RewritableResponse used anywhere in the new implementation. Furthermore, the reference implementation ideonate/jhsingle-native-proxy/jhsingle_native_proxy/proxyhandlers.py#L249 has no restriction to the stream type and just exposes this as a configurable flag.
So is there still any reason we currently only support text/event-stream, or could this be expanded?
Hey @yuvipanda and @ganisback
As you were responsible for integrating this feature, I was hoping you might be able to give some more details about this issue.
With #479, there is now support for proxying a
text/event-stream
, but not any other stream type (video/data). From what I can tell, this was originally not possible because of the wayRewritableResponse
works.But with the new Stream Support, I don't see
RewritableResponse
used anywhere in the new implementation. Furthermore, the reference implementation ideonate/jhsingle-native-proxy/jhsingle_native_proxy/proxyhandlers.py#L249 has no restriction to the stream type and just exposes this as a configurable flag.So is there still any reason we currently only support
text/event-stream
, or could this be expanded?