(context: PageEvent)
| 210 | } |
| 211 | |
| 212 | function 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 | |
| 220 | function produceResponseWithEventHeaders(res: Response) { |
| 221 | const event = getRequestEvent()!; |
no outgoing calls
no test coverage detected
searching dependent graphs…