Mixed execution

Server scripts run before response headers commit. Stream scripts then deliver their results over the open response.

Phase 1: Server script

Request context and session details are rendered before the shell.

Session Context: Public Visitor

Function platform: netlify

Phase 2 & 3: Stream script

Headers commit immediately; the next chunk follows over the open response.

Waiting for the stream...
Phase 3 Stream Chunk Resolved

Asynchronous work finished and streamed over the open connection.