Does Function Compute support SSE?

Updated at:

Web Function deployments support Server-Sent Events (SSE). Event Function and Task Function deployments do not support SSE.

How SSE detection works

Function Compute identifies a streaming response by checking whether the response includes the Transfer-Encoding:chunked header. Set this header in your Web Function's response to enable SSE.

Get started with SSE in a Web Function

When you deploy a Web Function, select a runtime that includes SSE sample code. The sample code shows the required response header setup and stream writing pattern, so you can build a working implementation without starting from scratch.