def __init__(self, config):
        """
        Creates a new instance of the HTTPClient.

        :Parameters:
           - `config`: The configuration instance
        """
        self.config = config
        self.url = self.config.cluster["server"]

        session = requests.Session()
        session.mount("https://", KubernetesHTTPAdapter(self.config))
        session.mount("http://", KubernetesHTTPAdapter(self.config))
        self.session = session
def __init__ ( self , config ) : self . config = config self . url = self . config . cluster [ "server" ] session = requests . Session ( ) session . mount ( "https://" , KubernetesHTTPAdapter ( self . config ) ) session . mount ( "http://" , KubernetesHTTPAdapter ( self . config ) ) self . session = session
Creates a new instance of the HTTPClient.

        :Parameters:
           - `config`: The configuration instance