ServerHttpRequest.readBodyAsString

Reads the request's body into a new string.

struct ServerHttpRequest
string
readBodyAsString
(
bool allowInfiniteRead = false
)

Parameters

allowInfiniteRead bool

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

Return Value

Type: string

The string content.