New in 2.4: Test runs you can trust See what's new →

Streaming responses

Streaming responses: Server-Sent Events, NDJSON, chunked transfer, byte drip and a streamed JSON array. Response buffering is disabled and every event is flushed, so clients see data as it is produced. Every stream stops as soon as the client disconnects.

Example request

Drip bytes slowly over a duration. Full reference and a Send button.

cURL
curl -X GET "https://api.testingapis.com/api/stream/drip?durationMs=500&bytes=5"
Run in Studio
Response · 200 OK
<binary body: 5 bytes, application/octet-stream>

For curl, fetch, Python and test-suite examples against these streams, see how to test Server-Sent Events.