get method
Implementation
Future<http.Response> get(
String ip,
String path, {
Map<String, String>? headers,
}) async {
final myIp = await client.getCurrentIp();
if (myIp == null) {
throw StateError('missing client IP');
}
final binding = await DeviceRequestBindingModel.create(
clientIp: myIp,
serverIp: ip,
method: 'GET',
path: path,
);
return client.get(ip, path, headers: {...?headers, ...binding.toHeaders()});
}