Sinch Node.js SDK - v1.9.0
    Preparing search index...

    Interface HttpContentParser

    Lazy parser over an HTTP response body. Buffered helpers (asString, asBytes, asJson) share one in-memory copy. asStream can replay a buffered body; mixing it with the underlying unread stream is not allowed.

    interface HttpContentParser {
        asBytes(): Promise<Buffer<ArrayBufferLike>>;
        asJson(): Promise<unknown>;
        asStream(): ReadableStream;
        asString(): Promise<string>;
    }
    Index

    Methods

    • Returns Promise<Buffer<ArrayBufferLike>>

    • Returns Promise<unknown>

    • Returns ReadableStream

    • Returns Promise<string>