deleteApi method
deleteApi Get request.
set saveResponse
to 'true' if you would want to save the response
pass savedResponseName
if you'd want to have a unique key assigned to
the saved saveResponse
data. leaving this empty, Activity will set the
key name as the endpoint
.
ActiveResponse({ required this.statusCode, required this.endpoint, this.data, });
ActiveRequest activeRequest = ActiveRequest();
activeRequest.setUp = RequestSetUp(
idleTimeout: 10,
connectionTimeout: 10,
logResponse: true,
withTrustedRoots: true
);
ActiveResponse activeResponse = await activeRequest
.deleteApi(Params(endpoint: 'https://catfact.ninja/fact'));
You can easily get the saveResponse
value using Memory
Implementation
deleteApi(Params params, {
bool saveResponse = false
}) async{
return await HttpActiveRequest().deleteApi(params, setUp, saveResponse: saveResponse);
}