Sample code for 30+ languages & platforms
Zig

Example: Rest.AddHeader method

Demonstrates the AddHeader method.

Chilkat Zig Downloads

Zig
const std = @import("std");
const chilkat = @import("chilkat");

pub fn main() !void {
    const rest = try chilkat.Rest.init();
    defer rest.deinit();

    rest.addHeader("User-Agent", "MyApplication/1.0") catch {};

    // ...
    // ...
    // ...
}