sessionHeaders property

Map<String, String> get sessionHeaders

Gets the headers for this session

Implementation

Map<String, String> get sessionHeaders {
  final result = Map<String, String>.from(headers);
  if (cookies.isNotEmpty) {
    result['Cookie'] = cookieString;
  }
  result['User-Agent'] = userAgent;
  return result;
}