'Initialize a stream object and an HTTP or HTTPS connection
with chunked Transfer-Encoding to server:port with optional headers.'

def __init__(self, server, port=80, headers={}, url='/', ssl_enabled=False, ssl_verification_enabled=True):

    self.maxtries = 5
    self._tries = 0
    self._delay = 1
    self._closed = False
    self._server = server
    self._port = port
    self._headers = headers
    self._url = url
    self._ssl_enabled = ssl_enabled
    self._ssl_verification_enabled = ssl_verification_enabled
    self._connect()
