(self, host, url, method="GET", secure=False, credentials=None,
                 context=None)
Initialize the instance with the host, the request URL, and the method
        ("GET" or "POST")
Initialize the instance with the host, the request URL, and the method
        ("GET" or "POST")
Initialize the instance with the host the request URL and the method ( GET or POST )
def __init__(self, host, url, method="GET", secure=False, credentials=None,
                 context=None):
        """
        Initialize the instance with the host, the request URL, and the method
        ("GET" or "POST")
        """
        logging.Handler.__init__(self)
        method = method.upper()
        if method not in ["GET", "POST"]:
            raise ValueError("method must be GET or POST")
        if not secure and context is not None:
            raise ValueError("context parameter only makes sense "
                             "with secure=True")
        self.host = host
        self.url = url
        self.method = method
        self.secure = secure
        self.credentials = credentials
        self.context = context
def __init__ ( self , host , url , method = "GET" , secure = False , credentials = None , context = None ) : logging . Handler . __init__ ( self ) method = method . upper ( ) if method not in [ "GET" , "POST" ] : raise ValueError ( "method must be GET or POST" ) if not secure and context is not None : raise ValueError ( "context parameter only makes sense " "with secure=True" ) self . host = host self . url = url self . method = method self . secure = secure self . credentials = credentials self . context = context