MCPcopy Index your code
hub / github.com/dataease/SQLBot / cookie

Function cookie

frontend/public/swagger-ui-bundle.js:55892–55909  ·  view source on GitHub ↗
({ req: s, parameter: o, value: i })

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

serializeFunction · 0.85
helpers_cookie_serializeFunction · 0.85
stylizeFunction · 0.85
keysMethod · 0.45
isArrayMethod · 0.45

Tested by

no test coverage detected