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

Function handleStreamCompleteRedirect

packages/start/src/server/handler.ts:212–218  ·  view source on GitHub ↗
(context: PageEvent)

Source from the content-addressed store, hash-verified

210}
211
212function handleStreamCompleteRedirect(context: PageEvent) {
213 return ({ write }: { write: (html: string) => void }) => {
214 context.complete = true;
215 const to = context.response && context.response.headers.get("Location");
216 to && write(`<script>window.location=${JSON.stringify(to).replace(/</g, "\\u003c")}</script>`);
217 };
218}
219
220function produceResponseWithEventHeaders(res: Response) {
221 const event = getRequestEvent()!;

Callers 1

createBaseHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…