Cookies Name Domain Path
"effect": minor
Cookies now identifies cookies by name, domain and path, so HttpClientResponse.cookies, HttpClient.withCookiesRef and HttpServerResponse keep same-name cookies set for a different domain or path.
Cookies.cookiesand theSchema.Cookiesisomorphic encoding are now aReadonlyArray<Cookie>in the order cookies were last set. Replacecookies.cookies[name]withCookies.getorCookies.getValue.- On
cookies.cookies,inandObject.hasOwncheck array properties rather than cookie names, whileObject.keysandObject.entriesenumerate array indices rather than names. UseOption.isSome(Cookies.get(cookies, name))for name-based membership, or enumerateCookies.toRecord(cookies)for names and decoded string values (the last cookie set for each name). Cookiesconstructors and combinators that add a cookie, and theHttpServerResponsecookie helpers, replace an existing cookie only when its name, domain and path match. Pass the samedomainandpathto override or expire a cookie.