Open mike820324 opened 8 years ago
I think change to response stream depend on the response size is reasonable. So maybe we should just follow how mitmproxy doing to do with this!
mitmproxy has the following ways to enable dest stream.
If one specify the command line options, than every connection will use stream mode. The drawback is that, we can not modify the response content since it it already gone, but we can still view it.
https://http2.golang.org/clockstream also supper from this issue.
There are some factors that we can consider to use response streaming.
If using the response streaming, some of the functionality of plugin script may work properly, which may need to disabled.
Agreed! Just the same way how mitmproxy doing
I think this feature should wait for #119 complete.
Completely agreed!
In some condition, we should not buffer the data in our proxy, but instead just stream the data to the client.
It is related to Issue #49.
For more reference, checkout http://docs.mitmproxy.org/en/latest/features/responsestreaming.html