parse 静态方法

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

从带有值和可选参数的头部值字符串中解析创建一个新的头部值对象。

实现

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