@cldn/web-ts - v0.4.0
    Preparing search index...

    Class StreamedResponse<A>

    A response that streams data from a readable stream.

    Type Parameters

    • A

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Construct a StreamedResponse.

      Type Parameters

      • A

      Parameters

      • stream: ReadableStream

        The readable stream to send in the response body.

      • OptionalstatusCode: number = 200

        The HTTP response status code to send.

      • Optionalheaders: HeadersInit

        The HTTP response headers to send.

      Returns StreamedResponse<A>

    Properties

    headers: Headers

    The HTTP response headers to send.

    statusCode: number

    The HTTP response status code to send.

    Methods