Skip to documentation
SLOP

tiny.http.ResponseCapacity

Reference tiny.http ResponseCapacity

Defined in tiny.http.

API (8)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/http/src/response.zig:53

zig
pub const Capacity = struct {    response_count: usize,    header_count_per_response: usize,    head_bytes_per_response: 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.response_count,            limits.header_count_per_response,        );        const header_bytes = try alloc_phase.capacity.mul(            usize,            header_count,            @sizeOf(Header),        );        const head_bytes = try alloc_phase.capacity.mul(            usize,            limits.response_count,            limits.head_bytes_per_response,        );        const storage_bytes = try alloc_phase.capacity.add(            usize,            header_bytes,            head_bytes,        );        return .{            .response_count = limits.response_count,            .header_count_per_response = limits.header_count_per_response,            .head_bytes_per_response = limits.head_bytes_per_response,            .header_count = header_count,            .header_bytes = header_bytes,            .head_bytes = head_bytes,            .storage_bytes = storage_bytes,        };    }};

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

zig
pub const ResponseCapacity = response.Capacity;
Called byCallsNo direct callstest sourcelib.http.src.responsetest: Response capacity matches indep...ResponseCapacityderive
Static calls · unresolved targets: 1 · external targets: 1.

Audit

Definitions2
Public names2
Members7
Version26.7.0
Revisiondaab053ee433