HttpRequest.readBodyAsString

Convenience method for reading the entire request body as a string.

struct HttpRequest
string
readBodyAsString
(
bool allowInfiniteRead = false
)

Parameters

allowInfiniteRead bool

Whether to read until no more data is available.

Return Value

Type: string

The string contents of the request body.