MCPcopy Create free account
hub / github.com/solidjs/solid-start / appendResponseHeader

Function appendResponseHeader

packages/start/src/http/index.ts:141–147  ·  view source on GitHub ↗
(name: string, value: string | string[])

Source from the content-addressed store, hash-verified

139 }
140};
141export 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};
148export const defaultContentType = (type: string) =>
149 getEvent().res.headers.set("content-type", type);
150export const proxyRequest = createWrapperFunction(h3.proxyRequest);

Callers

nothing calls this directly

Calls 1

getEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…