readerToString reads the content of the specified io.Reader until EOF or maxBytes are reached.
If maxBytes is not specified it will read up to 32MB.
Note that after this call the reader can't be used anymore.
Example:
const rawBody = readerToString(c.request().body) Copy
const rawBody = readerToString(c.request().body)
Optional
Generated using TypeDoc
readerToString reads the content of the specified io.Reader until EOF or maxBytes are reached.
If maxBytes is not specified it will read up to 32MB.
Note that after this call the reader can't be used anymore.
Example: