Add connect with headers method

For one of my projects I had to specity the 'host' in the header when connect. I added a method to add headers for the connection.