Skip to main content

Module http

Module http 

Source
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_idFunction
1get
2post
3put
4patch
5delete

Structs§

HttpModule
The http capability module.