Skip to main content

Module http

Module http 

Source
Expand description

HTTP handlers for Spark: the /_spark/update round-trip endpoint and the /_spark/spark.js runtime asset.

Constants§

RUNTIME_JS

Functions§

channel_auth
POST /_spark/auth — stub auth endpoint for private channels. v1 always returns 200 with a dummy auth payload. Real authorization lands in v1.1 via a SparkAuthorizer trait.
runtime_js
GET /_spark/spark.js — serve the embedded JS runtime.
update
POST /_spark/update — decode each component’s snapshot, apply property writes, dispatch the requested method, and return refreshed HTML + new snapshots.