getHeaderValue function

String getHeaderValue(
  1. Directive normalizedDirectives
)

Implementation

String getHeaderValue(Directive normalizedDirectives) {
  final List<String> result = [];

  normalizedDirectives.forEach((directiveName, rawDirectiveValue) {
    final directiveValue = StringBuffer();
    if (rawDirectiveValue != null) {
      for (final element in rawDirectiveValue) {
        directiveValue.write(' $element');
      }
    }
    result.add('$directiveName$directiveValue');
  });

  return result.join(';');
}