Skip to documentation
SLOP

tiny.http.ClientStreamCapacity

Reference tiny.http ClientStreamCapacity

Defined in tiny.http.

API (8)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.httpClientStreamCapacity
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/http/src/client/stream/model.zig:18

zig
pub const Capacity = struct {    stream_count: usize,    header_count_per_stream: usize,    head_bytes_per_stream: usize,    header_count: usize,    header_bytes: usize,    head_bytes: usize,    storage_bytes: usize,    pub fn derive(limits: Limits) error{CapacityOverflow}!Capacity {        const header_count = try alloc_phase.capacity.mul(            usize,            limits.stream_count,            limits.header_count_per_stream,        );        const header_bytes = try alloc_phase.capacity.mul(            usize,            header_count,            @sizeOf(Header),        );        const head_bytes = try alloc_phase.capacity.mul(            usize,            limits.stream_count,            limits.head_bytes_per_stream,        );        const storage_bytes = try alloc_phase.capacity.add(            usize,            header_bytes,            head_bytes,        );        return .{            .stream_count = limits.stream_count,            .header_count_per_stream = limits.header_count_per_stream,            .head_bytes_per_stream = limits.head_bytes_per_stream,            .header_count = header_count,            .header_bytes = header_bytes,            .head_bytes = head_bytes,            .storage_bytes = storage_bytes,        };    }};

Source: lib/http/src/root.zig:106

zig
pub const ClientStreamCapacity = client.StreamCapacity;
Called byCallsNo direct callstest sourcelib.http.src.client.stream.modeltest: Client stream capacity matches ...ClientStreamCapacityderive
Static calls · unresolved targets: 1 · external targets: 1.

Audit

Definitions2
Public names2
Members7
Version26.7.0
Revisiondaab053ee433