isBrowser function

bool isBrowser(
  1. Map<String, String> headers
)

Wether the headers are for browser.

Implementation

bool isBrowser(Map<String, String> headers) {
  final browserStructure = {'authorization', 'cookie'};
  return browserStructure.every((key) => headers.containsKey(key));
}