SAP AI SDK for JavaScript - v2.13.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
    buffer: string[]
    textDecoder: any
    trailingCR: boolean
    NEWLINE_CHARS: Set<string>
    NEWLINE_REGEXP: RegExp
    • Parameters

      • chunk: Bytes

      Returns string[]

    • Parameters

      • bytes: Bytes

      Returns string

    • Returns string[]