

def post(self, url, body):
    'Perform a POST request to the given resource with the given\n        body.  The "url" argument will be joined to the base URL this\n        object was initialized with.\n\n        :param string url: the URL resource to hit\n        :param string body: the POST body for the request\n        :rtype: requests.Response object'
    to_hit = urlparse.urljoin(self.base_url, url)
    resp = self.pool.post(to_hit, data=body, auth=self.auth)
    return resp

dataset/ETHPy150Open tempodb/tempodb-python/tempodb/endpoint.py HTTPEndpoint.post/original