Frame a request by prepending a size prefix.
Encodes the request header and body, then prepends an INT32 size prefix containing the total byte length of header + body (excluding the prefix itself).
Request header fields.
Callback to encode the request body into the writer.
Optional
Override the header version (defaults to auto-detection).
The complete framed request as a Uint8Array.
Frame a request by prepending a size prefix.
Encodes the request header and body, then prepends an INT32 size prefix containing the total byte length of header + body (excluding the prefix itself).