parse 静态方法

HeaderValue parse(
  1. String value,
  2. {String parameterSeparator = ";",
  3. String? valueSeparator,
  4. bool preserveBackslash = false}
)

从带有值和可选参数的 header value 字符串中解析出新的 header value 对象。

实现

static HeaderValue parse(String value,
    {String parameterSeparator = ";",
    String? valueSeparator,
    bool preserveBackslash = false}) {
  return _HeaderValue.parse(value,
      parameterSeparator: parameterSeparator,
      valueSeparator: valueSeparator,
      preserveBackslash: preserveBackslash);
}