Proxy Connection

Hi, I`m developing a client and I need to know how spark connect to servers with a proxy server… Who can help me???

THANKS