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

Function handleShellCompleteRedirect

packages/start/src/server/handler.ts:202–210  ·  view source on GitHub ↗
(context: PageEvent, e: H3Event)

Source from the content-addressed store, hash-verified

200}
201
202function handleShellCompleteRedirect(context: PageEvent, e: H3Event) {
203 return () => {
204 if (context.response && context.response.headers.get("Location")) {
205 const status = getExpectedRedirectStatus(context.response);
206 e.res.status = status;
207 e.res.headers.set("Location", context.response.headers.get("Location")!);
208 }
209 };
210}
211
212function handleStreamCompleteRedirect(context: PageEvent) {
213 return ({ write }: { write: (html: string) => void }) => {

Callers 1

createBaseHandlerFunction · 0.85

Calls 1

Tested by

no test coverage detected