Opsmaru.Incus.HTTP (opsmaru_incus v0.1.0)

Copy Markdown View Source

Portable GetHTTPClient/DoHTTP slice over an explicitly bound native backend or verified image origin.

client/1 returns an immutable HTTP handle without starting a pool or process. request/4 accepts a native relative API path and optional binary body/headers, returning raw HTTP status, headers and binary body under the connection's request deadline and byte limits. HTTP status alone is not native operation completion. Redirects and 305 responses are returned without replay; streaming native transfers use the separate Transfer/Files/Images interfaces.

Summary

Functions

client(client)

request(http, method, path, opts \\ [])