ServerHttpRequest.readBodyAsBytes

Reads the request's body into a new byte array.

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

Parameters

allowInfiniteRead bool

Whether to allow reading even without a valid Content-Length header.

Return Value

Type: ubyte[]

The byte array.