clear method
Clear inactive requests from the log.
/api/v0/diag/cmds/clear
Response:
{
"Text": "<text/plain response>",
"StatusCode": "<statusCode>",
"StatusMessage": "<statusMessage>"
}
See more: https://docs.ipfs.io/reference/http/api/#api-v0-diag-cmds-clear
Implementation
Future<Map<String, dynamic>> clear() async {
Response? res = await _post(Ipfs.dio, url: "${Ipfs.url}/diag/cmds/clear");
return _interceptDioResponse(res);
}