We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c0d09 commit c0b199aCopy full SHA for c0b199a
1 file changed
README.md
@@ -151,6 +151,18 @@ $client->imagePush();
151
152
What this means is that these endpoints actually emit any number of progress
153
events (individual JSON objects).
154
+At the HTTP level, a common response message could look like this:
155
+
156
+```
157
+HTTP/1.1 200 OK
158
+Content-Type: application/json
159
160
+{"status":"loading","current":1,"total":10}
161
+{"status":"loading","current":2,"total":10}
162
+…
163
+{"status":"loading","current":10,"total":10}
164
+{"status":"done","total":10}
165
166
167
The user-facing API hides this fact by resolving with an array of all individual
168
progress events once the stream ends:
0 commit comments