An object you can use to monitor and modify HTTP responses.

interface StreamFilter {
    error: string;
    ondata: (event: _StreamFilterOndataEvent) => void;
    onerror: (event: Event) => void;
    onstart: (event: Event) => void;
    onstop: (event: Event) => void;
    status: _StreamFilterStatus;
    close(): void;
    disconnect(): void;
    resume(): void;
    suspend(): void;
    write(data: ArrayBuffer | Uint8Array<ArrayBufferLike>): void;
}
Index
error: string

A string that will contain an error message after the onerror event has fired.

ondata: (event: _StreamFilterOndataEvent) => void

Event handler which is called when incoming data is available.

onerror: (event: Event) => void

Event handler which is called when an error has occurred.

onstart: (event: Event) => void

Event handler which is called when the stream is about to start receiving data.

onstop: (event: Event) => void

Event handler which is called when the stream has no more data to deliver and has closed.

Describes the current status of the stream.

  • Closes the request.

    Returns void

  • Disconnects the filter from the request.

    Returns void

  • Resumes processing of the request.

    Returns void

  • Suspends processing of the request.

    Returns void

  • Writes some data to the output stream.

    Parameters

    • data: ArrayBuffer | Uint8Array<ArrayBufferLike>

    Returns void