mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Without Prefer: respond-async the extract route ran the read with no schedule, so a twenty-page report read a page at a time, with a retry each, could make forty model calls in one HTTP request. The iPhone app sends no Prefer header and reads the document detail from the answer, so the request keeps its 200 and its body. An extraction without a run deadline now plans at most three reads (six calls): a longer document has its pages or text shared out between them, and what does not fit is reported as extractionIncomplete on the document. The background run keeps reading it a page at a time. Refs #1257
3.3 MiB
3.3 MiB