SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Class LineDecoder

    A re-implementation of httpx's LineDecoder in Python that handles incrementally reading lines from text.

    Https://github.com/encode/httpx/blob/920333ea98118e9cf617f246905d7b202510941c/httpx/_decoders.py#L258.

    Index

    Constructors

    Properties

    Methods

    decode decodeText flush

    Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

    Constructors

    Properties

    buffer: string[]
    textDecoder: any
    trailingCR: boolean
    NEWLINE_CHARS: Set<string>
    NEWLINE_REGEXP: RegExp

    Methods

    • Parameters

      • chunk: Bytes

      Returns string[]

    • Parameters

      • bytes: Bytes

      Returns string

    • Returns string[]