These libraries are experimental. APIs may change without notice. Generated from source on 3/14/2026.

cURL

Wraps industry-standard libcurl with phantom obligation types

@koru/curl

@koru/curl - HTTP Client for Koru Wraps industry-standard libcurl with phantom obligation types to enforce connection cleanup at compile-time.
// ============================================================================
// GET Request
// ============================================================================
~pub event get {
    url: []const u8, allocator: ?std.mem.Allocator
}
| ok *Response[open!]
| err Error
// ============================================================================
// POST Request
// ============================================================================
~pub event post {
    url: []const u8, body: []const u8, allocator: ?std.mem.Allocator
}
| ok *Response[open!]
| err Error
~pub event post.with_headers {
    url: []const u8,
    body: []const u8,
    headers: []const Header,
    allocator: ?std.mem.Allocator
}
| ok *Response[open!]
| err Error
// ============================================================================
// Close (discharges obligation)
// ============================================================================
~pub event close {
    resp: *Response[!open]
}