tiny.http.ClientWebSocketCapacity
Defined in tiny.http.
API (5)
Actions
Public operations.
Fields and members
Public fields and members.
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;Audit
| Definitions | 2 |
|---|---|
| Public names | 2 |
| Members | 4 |
| Version | 26.7.0 |
| Revision | daab053ee433 |