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

Function getExpectedRedirectStatus

packages/start/src/server/util.ts:6–12  ·  view source on GitHub ↗
(response: ResponseStub)

Source from the content-addressed store, hash-verified

4const validRedirectStatuses = new Set([301, 302, 303, 307, 308]);
5
6export function getExpectedRedirectStatus(response: ResponseStub): number {
7 if (response.status && validRedirectStatuses.has(response.status)) {
8 return response.status;
9 }
10
11 return 302;
12}

Callers 3

handleNoJSFunction · 0.90
createBaseHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…