Skip to main content

Module workers_entry

Module workers_entry 

Source
Expand description

Per-Worker index.ts generation (v0.8 §4.3, v0.9 §5.1).

Each Worker exports a default { fetch } handler that first checks for the internal Service Binding prefix (/_bynk/call/) and dispatches to the matching on call service operation, then matches the request method + path against any on http routes the context declares. Validation and uncaught errors map to 400 / 500 respectively.

Functions§

emit_worker_entry