def __init__(self, cert, verify=True, **kwargs):
        """
        Initialisation.

        Args:
            cert (tuple): Tuple containing the path to the cert file followed
                          by the path to the key file as strings.
            verify (bool/str): Whether to verify the handled request url. If a
                               string is given then this is used as the path to
                               a CA_BUNDLE file or directory with certificates of
                               trusted CAs. Note: If verify is set to a path to a
                               directory, the directory must have been processed
                               using the c_rehash utility supplied with OpenSSL.
                               This list of trusted CAs can also be specified through
                               the REQUESTS_CA_BUNDLE environment variable (this may
                               cause pip to fail to validate against PyPI).
        """
        HttpAuthenticated.__init__(self, **kwargs)
        self.cert = cert
        self.verify = verify
 def __init__(self, *args, **kwargs):
     HttpAuthenticated.__init__(self, *args, **kwargs)
     self.last_headers = None
Exemple #3
0
 def __init__(self, cert, **kwargs):
     self.cert = cert
     # super won't work because not using new style class
     HttpAuthenticated.__init__(self, **kwargs)
    def __init__(self, **kwargs):

        self.cert = kwargs.pop('cert', None)
        HttpAuthenticated.__init__(self, **kwargs)
Exemple #5
0
 def __init__(self, cert, **kwargs):
     self.cert = cert
     # super won't work because not using new style class
     HttpAuthenticated.__init__(self, **kwargs)
 def __init__(self,*args,**kwargs):
   HttpAuthenticated.__init__(self,*args,**kwargs)
   self.last_headers = None