operator [] method

String? operator [](
  1. String name
)

Gets the first value of the header with name.

Implementation

String? operator [](String name) {
  if (this is _Headers) {
    return (this as _Headers).table[name.toLowerCase()]?.firstOrNull;
  }
  return get(name)?.firstOrNull;
}