跳至主要内容

SharedDictionaryInfo 对象

  • match string - 字典匹配路径模式,该模式在 'use-as-dictionary' 响应头的 match 选项中声明。
  • matchDestinations string[] - 字典匹配目标数组,该数组在 'use-as-dictionary' 响应头的 match-dest 选项中声明。
  • id string - 字典 ID,该 ID 在 'use-as-dictionary' 响应头的 id 选项中声明。
  • dictionaryUrl string - 字典的 URL。
  • lastFetchTime Date - 字典从网络层接收的时间。
  • responseTime Date - 字典从服务器接收的时间。对于缓存的响应,此时间可能在“遥远”的过去。
  • expirationDuration number - 字典的过期时间,该时间在 'use-as-dictionary' 响应头的 expires 选项中声明,单位为秒。
  • lastUsedTime Date - 字典上次使用的时间。
  • size number - 此共享字典信息对象在 Chromium 内部存储(通常是 Sqlite)中存储的字节数。
  • hash string - 字典二进制文件的 sha256 哈希值。