fastc-core · HTTP/1.1 client
fastc-core-http
fastc-core-http is the HTTP/1.1 client in fastc-core. Every request-issuing function takes a CapNetConnect capability in its signature — a function without it structurally cannot make a network call, which is the whole point of capability-typed I/O.
capability CapNetConnect
What it ships (v0.1.0)
- GET / POST / PUT / DELETE
- TLS via OpenSSL linked at build time
- Header and body control
- Gated on CapNetConnect in every signature
When to use it
Any fastC program that must speak HTTP with visible, auditable network authority.
Example
use http::get;
fn fetch(c: ref(CapNetConnect)) -> Response {
return get(c, https://example.com");
} fastc-core-http — minimal usage fastc-core-http v0.1.0
Roadmap
HTTP/2 and connection pooling are deferred to a later release.
Provenance
Like every fastc-core package, fastc-core-http ships with
content-hashed, cosign-keyless-signed releases and SLSA L3 provenance. It is
vendored, not pulled from a central registry — there is no account to compromise.
See also
- github.com/fastc-lang/fastc-core-http — source, at
v0.1.0 - docs.fastc-lang.com/language/fastc-core/ — the per-package API deep-dive
- All eleven fastc-core packages →