captureOperation method

Future<bool> captureOperation(
  1. String operation
)
inherited

captureOperation -> /v1/capture/{operation}

Performs the requested capture operation (start, stop).

PARAMETERS

operation : The capture operation to perform

  • Should be one of: start, stop

RESPONSE 204:

The request was processed successfully. There is no response body.

content-type: NONE

Implementation

Future<bool> captureOperation(String operation) async {
  String url = '/v1/capture/$operation';

  return await call('get', url, httpAccept: 'application/json');
}