| 144 | } |
| 145 | |
| 146 | export interface StringifyOptions { |
| 147 | /** |
| 148 | * Specifies a function that will be used to encode a [cookie-value](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1). |
| 149 | * Since value of a cookie has a limited character set (and must be a simple string), this function can be used to encode |
| 150 | * a value into a string suited for a cookie's value, and should mirror `decode` when parsing. |
| 151 | * The default function preserves roundtrip-safe cookie-octet values and uses `encodeURIComponent` otherwise. |
| 152 | */ |
| 153 | encode?: (str: string) => string; |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Stringifies an object into an HTTP `Cookie` header. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…