def request(self, server=None):
request = {<EOL>"<STR_LIT>": {"<STR_LIT:Content-Type>": "<STR_LIT:application/json>"},<EOL>"<STR_LIT>": self._pump.timeout,<EOL>"<STR_LIT:data>": self.context,<EOL>}<EOL>url = "<STR_LIT>".format(<EOL>proto=self._pump.protocol,<EOL>server=server or self.server,<EOL>endpoint=self.ENDPOINT,<EOL>)<EOL>response = self._pump._requester(requests.post, url, **request)<EOL>try:<EOL><INDENT>server_data = response.json()<EOL><DEDENT>except ValueError:<EOL><INDENT>raise ClientException(response.content)<EOL><DEDENT>if "<STR_LIT:error>" in server_data:<EOL><INDENT>raise ClientException(server_data["<STR_LIT:error>"], self.context)<EOL><DEDENT>_log.debug("<STR_LIT>", {<EOL>"<STR_LIT:id>": server_data["<STR_LIT>"],<EOL>"<STR_LIT>": server_data["<STR_LIT>"],<EOL>"<STR_LIT>": server_data["<STR_LIT>"],<EOL>})<EOL>return server_data<EOL>
Sends the request