get method

String? get(
  1. String name
)

Returns a String sequence of all the values of a header within a Headers object with a given name.

MDN Reference

Implementation

String? get(String name) {
  return switch (_storage.valuesOf(name)) {
    Iterable<String> values when values.isNotEmpty => values.join(', '),
    _ => null,
  };
}