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