(context: PageEvent, e: H3Event)
| 200 | } |
| 201 | |
| 202 | function 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 | |
| 212 | function handleStreamCompleteRedirect(context: PageEvent) { |
| 213 | return ({ write }: { write: (html: string) => void }) => { |
no test coverage detected