1 .. _prepared-response-api:
6 This API is used by other parts of the API. It is not supposed to be initiated
9 Some requests might require the server to prepare a response. This process can
10 take longer than common request timeouts.
12 In such cases, the server will provide a URL from which the response can be
19 The Prepared Response API defines the following resources ::
27 The server can indicate a prepared response in the following way. ::
32 Please note that any URL might be used in the ``Link`` header.
34 The server is preparing the result at the specified resource. The client should
35 try to fetch the data from the given URLs. ::
38 Content-Tpe: application/json
41 A status code 404 is returned before the data is ready. The client may retry
42 after the given number of seconds. ::
48 When the data is ready, 200 will be returned ::
51 Content-Tpe: application/json
55 When the data is no longer available, a 410 is returned. ::
59 In this case the client SHOULD retry the previous request.