HttpRequest.readBodyAsBytes

Convenience method for reading the entire request body as an array of bytes.

struct HttpRequest
ubyte[]
readBodyAsBytes
(
bool allowInfiniteRead = false
)

Parameters

allowInfiniteRead bool

Whether to read until no more data is available.

Return Value

Type: ubyte[]

The byte content of the request body.