I found repo for creating HTTP(s) Proxy Server but it very slow, please see image below
The code responsible for that I think is Line 98
while (!to