(name: string, value: string | string[])
| 139 | } |
| 140 | }; |
| 141 | export const appendResponseHeader = (name: string, value: string | string[]) => { |
| 142 | const headers = getEvent().res.headers; |
| 143 | |
| 144 | (Array.isArray(value) ? value : [value]).forEach(value => { |
| 145 | headers.append(name, value); |
| 146 | }); |
| 147 | }; |
| 148 | export const defaultContentType = (type: string) => |
| 149 | getEvent().res.headers.set("content-type", type); |
| 150 | export const proxyRequest = createWrapperFunction(h3.proxyRequest); |
nothing calls this directly
no test coverage detected
searching dependent graphs…