_mode: "empty" | "length" | "chunked"
RequestBodyStream:_finish() → ()
RequestBodyStream:_readChunkHeader() → ()
Reads a chunk from a streamed request body.
In streamed request-body mode, handlers receive req.bodyStream, which
exposes read, readAll, and close for incremental upload
processing.
Parameters
Maximum number of bytes to read. Defaults to 65536.
Returns
The next body chunk, or "" when the stream ends.
Reads the rest of a streamed request body into a string.
RequestBodyStream:readAll() → string
Returns
The remaining request body.
Consumes and closes a streamed request body.
This is useful when a handler wants to abandon the body early but still
allow the connection to be reused safely.
RequestBodyStream:close() → ()