Now that whatwg/fetch#1346 is landed, the fetch() spec has a new response.headers.getSetCookie() method for getting individual (non-combined) set-cookie headers.
We should detect the presence of getSetCookie() and call it when available.
Additionally the documentation should be cleaned up to clarify that splitCookiesString() is only necessary when working with older implementations.
Now that whatwg/fetch#1346 is landed, the
fetch()spec has a newresponse.headers.getSetCookie()method for getting individual (non-combined) set-cookie headers.We should detect the presence of
getSetCookie()and call it when available.Additionally the documentation should be cleaned up to clarify that
splitCookiesString()is only necessary when working with older implementations.