aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes/workbench/qa-evaluation.js
diff options
context:
space:
mode:
authoreunhhu <[email protected]>2026-09-26 16:50:03 +0100
committereunhhu <[email protected]>2026-09-26 16:50:03 +0100
commit6177f07292682cf5dbf5e91ce101ce116c858e67 (patch)
tree98b8c2c543c665c3d445672dd57737dfba2095a1 /prototypes/workbench/qa-evaluation.js
parentb6061fa10436bad78d7601a36712101dfe873643 (diff)
downloadpure-6177f07292682cf5dbf5e91ce101ce116c858e67.tar.gz
pure-6177f07292682cf5dbf5e91ce101ce116c858e67.zip
Serve an app's views and inputs over HTTP
pure-serve answers GET /views/NAME with a view's value (a number or text as text/plain, a table as JSON rows, a page of them with ?from=&count=, each cell computed only for the rows asked) and POST /inputs/NAME with an event: a text input's text is the body, a key input is pressed, a message takes its u32 fields from the query and its bytes field from the body and answers its handler's reply. A failed event answers with its fault (404 not_found, 409 exists, 422 the others). No routes are written: the app's views and inputs are its interface. Documents stay served when the module has show and edit. The route of a request is kept per work slot, so an accepted event runs even if its connection closes before the burst; views and app events join any burst, whose one save comes before its answers.
Diffstat (limited to 'prototypes/workbench/qa-evaluation.js')
0 files changed, 0 insertions, 0 deletions