Capabilities / net
net
@1NEEDS A GRANTOutbound requests to hosts named in the manifest and shown on the install prompt.
Named in the manifest, which is what makes the install prompt able to say where a mod talks to. A host that was not named is refused, so the prompt is a list of everywhere rather than a list of somewhere.
2 callsSurface as of 2026-10-21
Never granted automatically
Explicit grant only. A mod that can talk to a host it named is a mod that can send whatever it read there.
Calls
get
get(url: str) -> Result<Blob>
In C, from surface.h
int32_t axiom_net_get(const char* url, uint32_t url_length, uint8_t* out, uint32_t out_length, uint32_t* out_used);
postWRITES
post(url: str, body: Blob) -> Result<Blob>
In C, from surface.h
int32_t axiom_net_post(const char* url, uint32_t url_length, const uint8_t* body, uint32_t body_length, uint8_t* out, uint32_t out_length, uint32_t* out_used);
Errors
A call that returns Result crosses as a status: 0 is success, and the others are these errors, by their index in the capability.
HostNotDeclaredUnreachableDenied