forEach method

  1. @override
void forEach(
  1. void action(
    1. String,
    2. List<String>
    )?
)
override

Performs the action on each header.

The action function is called with each header's name and a list of the header's values. The casing of the name string is determined by the last add or set operation for that particular header, which defaults to lower-casing the header name unless explicitly set to preserve the case.

Implementation

@override
void forEach(
        void Function(
          String,
          List<String>,
        )? action) =>
    super.noSuchMethod(
      Invocation.method(
        #forEach,
        [action],
      ),
      returnValueForMissingStub: null,
    );