(headers, name, attributes)
| 16788 | validateCookieValue(cookie.value); |
| 16789 | const out = [`${cookie.name}=${cookie.value}`]; |
| 16790 | if (cookie.name.startsWith("__Secure-")) { |
| 16791 | cookie.secure = true; |
| 16792 | } |
| 16793 | if (cookie.name.startsWith("__Host-")) { |
| 16794 | cookie.secure = true; |
| 16795 | cookie.domain = null; |
| 16796 | cookie.path = "/"; |
| 16797 | } |
| 16798 | if (cookie.secure) { |
| 16799 | out.push("Secure"); |
| 16800 | } |
| 16801 | if (cookie.httpOnly) { |
| 16802 | out.push("HttpOnly"); |
| 16803 | } |
| 16804 | if (typeof cookie.maxAge === "number") { |
nothing calls this directly
no test coverage detected