getHeaders static method

Future<Map<String, String>?> getHeaders({
  1. required String url,
  2. required String applicationKey,
  3. required String? token,
})

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,
    );