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

Drip bytes slowly over a duration

GEThttps://api.testingapis.com/api/stream/dripSign in to see this endpoint's URL

Useful for testing read timeouts and progress handling. Content-Length is set to bytes. Example: curl -N "https://api.testingapis.com/api/stream/drip?durationMs=3000&bytes=30"Useful for testing read timeouts and progress handling. Content-Length is set to bytes. Example: curl -N "https://api.testingapis.com…"

Parameters 2

NameTypeDescription
durationMsquery · integer (int32)Total time to spread the bytes over, in milliseconds (0-30000, default 2000). Default: 2000.
bytesquery · integer (int32)Number of * bytes to send (1-10240, default 10). Default: 10.

Responses

200
application/octet-stream body of asterisks.

Example

Request
curl -X GET "https://api.testingapis.com/api/stream/drip?durationMs=500&bytes=5" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: application/octet-stream
Cache-Control: no-cache

<binary body: 5 bytes, application/octet-stream>

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.