captureFingerPrint method
Implementation
@override
Future<String> captureFingerPrint(String pidOptions, {int? port, String? path}) async {
assert(port != null);
assert(path != null);
try {
final client =
await httpClient.openUrl("CAPTURE", Uri.parse("http://127.0.0.1:$port$path"));
client.headers.set("Content-Type", "text/xml; charset=utf-8");
client.headers.set("Accept", "text/xml");
client.write(pidOptions);
pluginDebug("Requesting Capture at 127.0.0.1:$port$path");
return await (await client.close()).transform(utf8.decoder).join();
} catch (e) {
pluginDebug("--- Error on captureFingerPrint ---", e: e);
rethrow;
}
}