google / martian

Martian is a library for building custom HTTP/S proxies
Apache License 2.0
2k stars 247 forks source link

Feature: streaming responses #321

Closed hazcod closed 2 years ago

hazcod commented 3 years ago

Hi!

It would be nice if we could stream (pass chunks directly to the client instead of loading the full response locally) HTTP responses. This would greatly speed up large responses such as images or large binary files.

berkant commented 3 years ago

Yes, I actually find it weird to see the connection stall when downloading a large file. Why would a proxy be not able to handle arbitrary response sizes?

bramhaghosh commented 2 years ago

We need to pull in the response in order support modification. Request and response body modification is the primary use case for Martian.