TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Send a plain-text response in chunked transfer encoding

GEThttps://api.testingapis.com/api/stream/chunked/{n}Sign in to see this endpoint's URL

No Content-Length is sent, so HTTP/1.1 uses Transfer-Encoding: chunked; each line is flushed as its own chunk. Watch it with curl -N "https://api.testingapis.com/api/stream/chunked/5".No Content-Length is sent, so HTTP/1.1 uses Transfer-Encoding: chunked; each line is flushed as its own chunk. Watch it with curl -N "https://api.testingapis.com…".

Parameters 2

NameTypeDescription
nrequiredpath · integer (int32)Number of chunks (1-100; out-of-range values are clamped).
intervalMsquery · integer (int32)Delay between chunks in milliseconds (0-5000, default 250). Default: 250.

Responses

200
Chunked text, one line per chunk.

Example

Request
curl -X GET "https://api.testingapis.com/api/stream/chunked/3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: text/plain; charset=utf-8
Cache-Control: no-cache

chunk 1/3 sent at 18:26:38.712
chunk 2/3 sent at 18:26:38.978
chunk 3/3 sent at 18:26:39.236

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.