← home

Bulk fetch

Instead of traversing one by one, the server can send a multipart/form-data response that contains multiple posts in a single HTTP response. This response type is sent when the request includes an Accept: multipart/form-data header.

The multipart response won't necessarily contain all posts. If the last post in the response has a rel=previous entry in the Link header, then you can make another request to that url, and pass the Accept: multipart/form-data header once again to get the next set.

Servers that don't support bulk fetch should return an HTTP status of 406 Not Acceptable when a client includes the Accept: multipart/form-data header.

This example queries /status and extracts each individual post from the combined response.

Query by time →