def post()

in client/aws_auth.py [0:0]


    def post(self, request_url, body, add_headers=None):

        if type(body) == dict:
            request_body = json.dumps(body)
        else:
            request_body = body
        # canonical_querystring = ''
        headers = self.sign_all_the_things(
            request_body=request_body.encode('utf-8'),
            request_url=request_url,
            method='POST'
        )
        # canonical_querystring = self.sort_querystrings(parsed_url.query)

        if add_headers:
            for k, v in add_headers.items():
                headers[k] = v

        r = requests.post(request_url, data=request_body, headers=headers)
        #
        # if r.headers['Content-Type'] == "application/json":
        #     response = r.json()
        # else:
        #     response = r.text

        return r.text, r.status_code