| 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 |