Request lifecycle
hclapi has two phases. Manifests are validated once, at boot. Every request after that runs the same fixed pipeline.
Stages
1. Ingress
The method and path are matched. Headers, query parameters, and body are parsed.
2. Context initialization
A request-scoped execution context is created.
3. Step execution
Pipeline steps run in order, reading from and appending to the context.
4. Response
A respond step serializes status, headers, and body, and terminates the pipeline.
A request that fails schema validation or arrives with unparseable JSON never reaches step execution.