Expand description
http capability module — HTTP request functions (host-delegated).
Functions: get, post, put, patch, delete.
All HTTP operations are host-delegated — the runtime host performs actual
requests via env.host_call(cap_id=1, fn_id, payload). This module
validates arguments and returns CapabilityCall errors to signal the
caller to route the call to the host.
§Cap ID / Fn ID Mapping
| fn_id | Function |
|---|---|
| 1 | get |
| 2 | post |
| 3 | put |
| 4 | patch |
| 5 | delete |
Structs§
- Http
Module - The
httpcapability module.