FuseJS
    Preparing search index...

    Class FuseResponseReader

    A static class with convenience methods for reading common response content body formats.

    Index

    Methods

    • Type Parameters

      • T

      Parameters

      • data: ArrayBuffer

        input data

      Returns Promise<T>

      The buffer contents as a JSON object.

      Reads the given data buffer as a JSON object. The JSON object can be typed as T generic. No validations occurs on whether the given data is actually a type of T.

      SyntaxError If data is not parseable as JSON.

    • Parameters

      • data: ArrayBuffer

        input data

      Returns Promise<string>

      The buffer contents as a string

      Reads the data buffer as a string