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

Function defaultContentType

packages/start/src/http/index.ts:148–149  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

146 });
147};
148export const defaultContentType = (type: string) =>
149 getEvent().res.headers.set("content-type", type);
150export const proxyRequest = createWrapperFunction(h3.proxyRequest);
151export const fetchWithEvent = createWrapperFunction(h3.fetchWithEvent);
152export const getProxyRequestHeaders = createWrapperFunction(h3.getProxyRequestHeaders);

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…