'Initialize an instance.'

def __init__(self, host, url, method='GET', secure=False, credentials=None):

    logging.Handler.__init__(self)
    method = method.upper()
    if (method not in ['GET', 'POST']):
        raise ValueError('method    must    be    GET    or    POST')
    self.host = host
    self.url = url
    self.method = method
    self.secure = secure
    self.credentials = credentials
