MCPcopy Index your code
hub / github.com/solidjs/solid-start / getFetchEvent

Function getFetchEvent

packages/start/src/server/fetchEvent.ts:17–24  ·  view source on GitHub ↗
(h3Event: H3Event)

Source from the content-addressed store, hash-verified

15}
16
17export function getFetchEvent(h3Event: H3Event): FetchEvent {
18 if (!h3Event.context[FETCH_EVENT_CONTEXT]) {
19 const fetchEvent = createFetchEvent(h3Event);
20 h3Event.context[FETCH_EVENT_CONTEXT] = fetchEvent;
21 }
22
23 return h3Event.context[FETCH_EVENT_CONTEXT] as any;
24}
25
26export function mergeResponseHeaders(h3Event: H3Event, headers: Headers) {
27 for (const [key, value] of headers.entries()) {

Callers 6

handleServerFunctionFunction · 0.90
wrapRequestMiddlewareFunction · 0.90
wrapResponseMiddlewareFunction · 0.90
fetchEvent.spec.tsFile · 0.90
decorateHandlerFunction · 0.85
decorateMiddlewareFunction · 0.85

Calls 1

createFetchEventFunction · 0.85

Tested by

no test coverage detected