HeaderInfo constructor

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

Implementation

HeaderInfo({
  /// The name of the header. This condition matches on the name
  /// only if both `values` and `excludedValues` are not specified.
  required String header,

  /// If specified, this condition matches if the header's value matches at
  /// least one pattern in this list. This supports case-insensitive header
  /// value matching plus the following constructs:
  ///
  /// **'*'**  : Matches any number of characters.
  ///
  /// **'?'**  : Matches zero or one character(s).
  ///
  /// '*' and '?' can be escaped with a backslash, e.g. '\*' and '\?'
  List<String>? values,

  /// If specified, this condition is not matched if the header exists but its
  /// value contains at least one element in this list. This uses the same
  /// match pattern syntax as `values`.
  List<String>? excludedValues,
}) : _wrapped = $js.HeaderInfo(
        header: header,
        values: values?.toJSArray((e) => e.toJS),
        excludedValues: excludedValues?.toJSArray((e) => e.toJS),
      );