def __init__(self, database_id, key, secret, base_url=BASE_URL):
        if base_url.endswith('/'):
            self.base_url = base_url
        else:
            #in case people use their own, it really has to end in a
            #slash so the urljoins will work properly
            self.base_url = base_url + '/'

        self.database_id = database_id
        self.headers = {
            'User-Agent': 'tempodb-python/%s' % "1.0.1",
            'Accept-Encoding': 'gzip'
        }
        self.auth = HTTPBasicAuth(key, secret)
        self.pool = requests.session()
        for p in ['http://', 'https://']:
            adapter = requests.adapters.HTTPAdapter()
            self.pool.mount(p, adapter)
dataset/ETHPy150Open tempodb/tempodb-python/tempodb/endpoint.py/HTTPEndpoint.__init__/original