Package-level declarations

Types

Link copied to clipboard

The ByteLengthQueuingStrategy interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams.

Link copied to clipboard

The CountQueuingStrategy interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams.

Link copied to clipboard
sealed interface GenericTransformStream
Link copied to clipboard
sealed interface QueuingStrategy<T : JsAny?>
Link copied to clipboard
Link copied to clipboard
typealias QueuingStrategySize<T> = (chunk: T) -> Int
Link copied to clipboard

The ReadableByteStreamController interface of the Streams API represents a controller for a readable byte stream.

Link copied to clipboard
open class ReadableStream<R : JsAny?>(    underlyingSource: UnderlyingByteSource,     strategy: QueuingStrategy<R> = definedExternally) : Transferable, AsyncIterable<R>

The ReadableStream interface of the Streams API represents a readable stream of byte data.

Link copied to clipboard

The ReadableStreamBYOBReader interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source.

Link copied to clipboard

The ReadableStreamBYOBRequest interface of the Streams API represents a 'pull request' for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).

Link copied to clipboard
sealed interface ReadableStreamController<T : JsAny?>

Union of:

Link copied to clipboard

The ReadableStreamDefaultController interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.

Link copied to clipboard

The ReadableStreamDefaultReader interface of the Streams API represents a default reader that can be used to read stream data supplied from a network (such as a fetch request).

Link copied to clipboard
Link copied to clipboard
sealed interface ReadableStreamReaderMode
Link copied to clipboard
sealed interface ReadableStreamReadResult<T : JsAny?>

Union of:

Link copied to clipboard
sealed interface ReadableStreamType
Link copied to clipboard
interface ReadableWritablePair<R : JsAny?, W : JsAny?>
Link copied to clipboard
Link copied to clipboard
interface Transformer<I : JsAny?, O : JsAny?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class TransformStream<I : JsAny?, O : JsAny?>(    transformer: Transformer<I, O> = definedExternally,     writableStrategy: QueuingStrategy<I> = definedExternally,     readableStrategy: QueuingStrategy<O> = definedExternally) : Transferable

The TransformStream interface of the Streams API represents a concrete implementation of the pipe chain transform stream concept.

Link copied to clipboard

The TransformStreamDefaultController interface of the Streams API provides methods to manipulate the associated ReadableStream and WritableStream.

Link copied to clipboard
sealed interface UnderlyingByteSource
Link copied to clipboard
sealed interface UnderlyingDefaultSource<R : JsAny?>
Link copied to clipboard
interface UnderlyingSink<W : JsAny?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface UnderlyingSource<R : JsAny?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class WritableStream<W : JsAny?>(    underlyingSink: UnderlyingSink<W> = definedExternally,     strategy: QueuingStrategy<W> = definedExternally) : Transferable

The WritableStream interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.

Link copied to clipboard

The WritableStreamDefaultController interface of the Streams API represents a controller allowing control of a WritableStream's state.

Link copied to clipboard

The WritableStreamDefaultWriter interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the WritableStream ensuring that no other streams can write to the underlying sink.