Function readerToString

  • 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)
    

    Parameters

    • reader: any
    • Optional maxBytes: number

    Returns string

Generated using TypeDoc