HttpRequest.readBodyToFile

Convenience method for reading the entire request body to a file.

struct HttpRequest
ulong
readBodyToFile
(
string filename
,
bool allowInfiniteRead = false
)

Parameters

filename string

The name of the file to write to.

allowInfiniteRead bool

Whether to read until no more data is available.

Return Value

Type: ulong

The size of the received file, in bytes.