Head stream

Get stream metadata without reading its content.

bucketpathstringrequired

Bucket ID.

streampathstringrequired

Stream ID within the bucket.

If-None-Matchheaderstring

ETag for conditional request. Returns 304 if the stream state has not changed.

Response

StatusMeaning
200Stream found.
304Stream state unchanged (when If-None-Match matches).
404Stream not found or expired.

Response headers include:

HeaderDescription
Content-TypeThe stream's content type.
Stream-Next-OffsetThe next writable offset (= current length).
ETagStream state ETag (encodes offset and open/closed state).
Stream-ClosedPresent and true if the stream is closed.
Stream-Snapshot-OffsetPresent if a snapshot exists, showing its offset.
Stream-TTLRemaining TTL in seconds (if a TTL was set).
Stream-Expires-AtExpiration timestamp (if set).
Cache-Controlno-store.
curl -I http://127.0.0.1:4437/demo/hello

Use If-None-Match with a previously received ETag to efficiently poll for state changes without transferring data.