INNER CODE UNIT · Dart
value
dreautall/waterfly-iii · lib/auth.dart:56
String value = line.substring(separator + 1).strip();
value = _stripWrappingQuotes(value).strip();
if (name.isEmpty ||
!_httpHeaderNamePattern.hasMatch(name) ||
value.isEmpty) {
throw AuthErrorCustomHeaders(i + 1);
}
headers[name] = value;
}
return headers;
}
String encodeCustomHeaders(Map<String, String> headers) {
if (headers.isEmpty) {
return "";
}