def newSession():
        """ Returns a new Requests session with pre-loaded default HTTP Headers
        
        Generates a new Requests session and consults with the Configuration class
        to determine if a Configuration exists and attempts to use the configured
        HTTP Request headers first. If this fails, it attempts to create a new
        default configuration and use those values. Finally, if a configuration
        cannot be initiaized it uses the hard-coded Mozilla headers.
           
        Returns
           request-client - The configured Requests session
           
        Raises
           HTTPException
        """
        from neolib.config.Configuration import Configuration
        
        s = requests.session()
        if not Configuration.loaded():
            if not Configuration.initialize():
                s.headers.update(Page._defaultVars)
            else:
                s.headers.update(Configuration.getConfig().core.HTTPHeaders.toDict())
        else:
            s.headers.update(Configuration.getConfig().core.HTTPHeaders.toDict())
        
        return requests.session()
def newSession ( ) : from neolib . config . Configuration import Configuration s = requests . session ( ) if not Configuration . loaded ( ) : if not Configuration . initialize ( ) : s . headers . update ( Page . _defaultVars ) else : s . headers . update ( Configuration . getConfig ( ) . core . HTTPHeaders . toDict ( ) ) else : s . headers . update ( Configuration . getConfig ( ) . core . HTTPHeaders . toDict ( ) ) return requests . session ( )
Returns a new Requests session with pre-loaded default HTTP Headers
        
        Generates a new Requests session and consults with the Configuration class
        to determine if a Configuration exists and attempts to use the configured
        HTTP Request headers first. If this fails, it attempts to create a new
        default configuration and use those values. Finally, if a configuration
        cannot be initiaized it uses the hard-coded Mozilla headers.
           
        Returns
           request-client - The configured Requests session
           
        Raises
           HTTPException