@servicenow/sdk - v4.13.3
    Preparing search index...

    Hierarchy

    • unknown
      • BodyReadable
    Index

    Constructors

    • Parameters

      • opts: {
            abort: () => void | null;
            contentLength?: number;
            contentType?: string;
            highWaterMark?: number;
            resume: (this: Readable, size: number) => void | null;
        }

      Returns BodyReadable

    Properties

    body: undefined

    If body is null, it should return null as the body

    If body is not null, should return the body as a ReadableStream

    https://fetch.spec.whatwg.org/#dom-body-body

    bodyUsed: boolean

    Returns true if the body is not null and the body has been consumed

    Otherwise, returns false

    https://fetch.spec.whatwg.org/#dom-body-bodyused

    Methods

    • Dumps the response body by reading limit number of bytes.

      Parameters

      • Optionalopts: { limit: number; signal?: AbortSignal }
        • limit: number

          Number of bytes to read (optional) - Default: 131072

        • Optionalsignal?: AbortSignal

          AbortSignal to cancel the operation (optional)

      Returns Promise<void>

    • Consumes and returns the body as a JavaScript Object https://fetch.spec.whatwg.org/#dom-body-json

      Returns Promise<unknown>