Skip to documentation
SLOP

tiny.http.ClientWebSocketCapacity

Reference tiny.http ClientWebSocketCapacity

Defined in tiny.http.

API (5)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

Source: lib/http/src/client/websocket/model.zig:11

zig
pub const Capacity = struct {    websocket_count: usize,    frame_payload_bytes_per_websocket: usize,    frame_bytes_per_websocket: usize,    storage_bytes: usize,    pub fn derive(limits: Limits) error{CapacityOverflow}!Capacity {        const frame_bytes = try alloc_phase.capacity.add(            usize,            frame_header_bytes,            limits.frame_payload_bytes_per_websocket,        );        const socket_bytes = try alloc_phase.capacity.mul(            usize,            frame_bytes,            2,        );        const storage_bytes = try alloc_phase.capacity.mul(            usize,            limits.websocket_count,            socket_bytes,        );        return .{            .websocket_count = limits.websocket_count,            .frame_payload_bytes_per_websocket = limits.frame_payload_bytes_per_websocket,            .frame_bytes_per_websocket = frame_bytes,            .storage_bytes = storage_bytes,        };    }};

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

zig
pub const ClientWebSocketCapacity = client.WebSocketCapacity;
Called byCallsNo direct callstest sourcelib.http.src.client.websocket.modeltest: Client WebSocket capacity match...test sourcelib.http.src.client.websocket.modeltest: Client WebSocket capacity rejec...ClientWebSocketCapacityderive
Static calls · unresolved targets: 1 · external targets: 1.

Audit

Definitions2
Public names2
Members4
Version26.7.0
Revisiondaab053ee433