ResponseBodyBuilder¶
Body construction phase of ResponseBuilder.
Add body data with add_chunk(), then call build() to produce the
final serialized response bytes.
Public Functions¶
add_chunk¶
Append body data to the response.
Multiple chunks are concatenated in order. For responses with no body,
call build() directly without calling add_chunk().
Parameters¶
Returns¶
build¶
Produce the complete serialized HTTP response as an immutable byte array.
The result is suitable for caching and reuse across multiple requests via
Responder.respond().
Consumes the internal buffer — a second call returns an empty array.