getHeaders static method
Fetch the headers of a resource call.
url
is the target.
applicationKey
is the key associated with this devices in the bridge's
whitelist.
Implementation
static Future<Map<String, String>?> getHeaders({
required String url,
required String applicationKey,
required String? token,
}) async =>
await _submitRequestForHeaders(
url: url,
applicationKey: applicationKey,
token: token,
body: null,
requestType: _RequestType.get,
);