async def post(self, cmd, data=None, timeout=None, **args):
def _post_request():<EOL><INDENT>headers = copy(_DMAP_HEADERS)<EOL>headers['<STR_LIT:Content-Type>'] = '<STR_LIT>'<EOL>return self.http.post_data(<EOL>self._mkurl(cmd, *args),<EOL>data=data,<EOL>headers=headers,<EOL>timeout=timeout)<EOL><DEDENT>await self._assure_logged_in()<EOL>return await self._do(_post_request)<EOL>
Perform DAAP POST command with optional data.