Function async for get headers http call
typedef GetHeaders = Future<Map<String, String>?> Function();