({ req: s, parameter: o, value: i })
| 55890 | escape: !1, |
| 55891 | })) |
| 55892 | } |
| 55893 | function cookie({ req: s, parameter: o, value: i }) { |
| 55894 | const { name: a } = o |
| 55895 | if (((s.headers = s.headers || {}), void 0 !== i && o.content)) { |
| 55896 | const u = serialize(i, Object.keys(o.content)[0]) |
| 55897 | s.headers.Cookie = helpers_cookie_serialize({ [a]: u }) |
| 55898 | } else if (void 0 !== i && (!Array.isArray(i) || 0 !== i.length)) { |
| 55899 | var u |
| 55900 | const _ = stylize({ |
| 55901 | key: o.name, |
| 55902 | value: i, |
| 55903 | escape: !1, |
| 55904 | style: o.style || 'form', |
| 55905 | explode: null !== (u = o.explode) && void 0 !== u && u, |
| 55906 | }), |
| 55907 | w = Array.isArray(i) && o.explode ? `${a}=${_}` : _ |
| 55908 | s.headers.Cookie = helpers_cookie_serialize({ [a]: w }) |
| 55909 | } |
| 55910 | } |
| 55911 | const Kx = |
| 55912 | 'undefined' != typeof globalThis |
nothing calls this directly
no test coverage detected