Skip to main content

Module net

Module net 

Source
Expand description

Port-based virtual networking (fetch).

Ported from packages/core/src/agent-os.ts fetch. Dispatches to a guest server on port inside the kernel, never the host. The request URL host is discarded (only pathname+search are used); the body is only attached for non-GET/HEAD methods; the response body is base64-decoded. Fully buffered both directions. Wire path is the existing VmFetch request/response.

Structsยง

FetchStatusText
The wire statusText, stashed in http::Response extensions so callers can recover the TS Response.statusText value (the http crate has no dedicated status-text field).