Forwarder is a production-ready, fast MITM proxy with PAC support. It's suitable for debugging, intercepting and manipulating HTTP traffic. It's used as a core component of Sauce Labs Sauce Connect Proxy.
The io.Copy has a built in optimization that can issue splice syscall to copy between file descriptors.
On a high level it boils down to checking if WriteTo() and ReadFrom() are implemented, see here.
We could use the same technique we use in delegator to provide type with implementations.
This should be also applied to CloseWrite().
The
io.Copy
has a built in optimization that can issue splice syscall to copy between file descriptors. On a high level it boils down to checking if WriteTo() and ReadFrom() are implemented, see here.We could use the same technique we use in delegator to provide type with implementations. This should be also applied to CloseWrite().