MyGit

v2.0.0

JakeChampion/fetch

版本发布时间: 2016-11-15 03:56:39

JakeChampion/fetch最新发布版本:v3.6.20(2023-12-14 07:12:38)

This changes the behavior of Headers regarding handling of headers with multiple values. Most notably, it removes the Headers.getAll() method. This diverges from the native implementations of Chrome and Firefox, since those vendors implement an earlier, now outdated version of the spec. The polyfill now acts more similar to Microsoft Edge implementation.

Consider this Headers object:

var h = new Headers()
h.append('accept', 'text/html')
h.append('accept', 'text/plain')
h.append('content-type', 'application/json')

Before:

Now:

This is in accordance with Section 3.1.2 of the spec, "combine" concept.

相关地址:原始地址 下载(tar) 下载(zip)

查看:2016-11-15发行的版本