HeaderInfo constructor

HeaderInfo({
  1. required String header,
  2. List<String>? values,
  3. List<String>? excludedValues,
})

Implementation

HeaderInfo({
  /// The name of the header.
  required String header,

  /// If specified, match this rule if the header's value contains at least
  /// one
  /// element in this list.
  List<String>? values,

  /// If specified, the rule is not matched if the header exists but its value
  /// contains at least one element in this list.
  List<String>? excludedValues,
}) : _wrapped = $js.HeaderInfo(
        header: header,
        values: values?.toJSArray((e) => e),
        excludedValues: excludedValues?.toJSArray((e) => e),
      );