Std.Html.Buffer
7 public declarations
- BytePlan
A pre-compiled immutable byte plan with static size metadata.
- coalesceToMss
&Array[Bytes] -> Int -> Array[Bytes]Batches streaming chunks up to the TCP Maximum Segment Size (MSS) boundary.
- compile
&Array[Std.Html.Buffer.RawChunk] -> Std.Html.Buffer.BytePlanPre-compiles a list of chunks, aggregating static byte metrics.
- formatHexChunkHeader
Int -> BytesFormats an HTTP/1.1 chunk length into a hex frame header `<hex>\r\n` without string heap allocation.
- frameChunk
&Bytes -> BytesFrames a byte payload as an HTTP/1.1 chunk: `<hex-length>\r\n<payload>\r\n`.
- RawChunk
A chunk of an HTML template: either pre-baked static bytes or a named dynamic slot.
- renderToBytes
&Std.Html.Buffer.BytePlan -> &Map[Str, Bytes] -> BytesAssembles the byte plan and runtime slot values directly into a contiguous unboxed buffer.
