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

Function parameter_builders_header

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

Source from the content-addressed store, hash-verified

55874 }
55875 }
55876 const Hx = ['accept', 'authorization', 'content-type']
55877 function parameter_builders_header({ req: s, parameter: o, value: i }) {
55878 if (((s.headers = s.headers || {}), !(Hx.indexOf(o.name.toLowerCase()) > -1)))
55879 if (void 0 !== i && o.content) {
55880 const a = Object.keys(o.content)[0]
55881 s.headers[o.name] = serialize(i, a)
55882 } else
55883 void 0 === i ||
55884 (Array.isArray(i) && 0 === i.length) ||
55885 (s.headers[o.name] = stylize({
55886 key: o.name,
55887 value: i,
55888 style: o.style || 'simple',
55889 explode: void 0 !== o.explode && o.explode,
55890 escape: !1,
55891 }))
55892 }
55893 function cookie({ req: s, parameter: o, value: i }) {
55894 const { name: a } = o

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected