Skip to content
File

Blob: src/workerd/api/streams.h

cpp39 lines
1// Copyright (c) 2017-2022 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5#pragma once
6// Streams standard: https://streams.spec.whatwg.org/
7//
8// This is the most over-engineered spec...
9 
10#include <workerd/api/streams/compression.h>
11#include <workerd/api/streams/encoding.h>
12#include <workerd/api/streams/identity-transform-stream.h>
13#include <workerd/api/streams/readable.h>
14#include <workerd/api/streams/standard.h>
15#include <workerd/api/streams/transform.h>
16#include <workerd/api/streams/writable.h>
17 
18namespace workerd::api {
19 
20#define EW_STREAMS_ISOLATE_TYPES \
21 api::StreamQueuingStrategy, api::UnderlyingSink, api::UnderlyingSource, api::Transformer, \
22 api::PipeToOptions, api::ReadResult, api::ReadableStream, api::ReadableStreamDefaultReader, \
23 api::ReadableStreamBYOBReader, \
24 api::ReadableStreamBYOBReader::ReadableStreamBYOBReaderReadOptions, \
25 api::ReadableStream::GetReaderOptions, api::ReadableStreamBYOBRequest, \
26 api::ReadableStreamDefaultController, api::ReadableByteStreamController, \
27 api::WritableStreamDefaultController, api::TransformStreamDefaultController, \
28 api::ReadableStream::Transform, api::WritableStream, api::WritableStreamDefaultWriter, \
29 api::TransformStream, api::FixedLengthStream, api::IdentityTransformStream, \
30 api::IdentityTransformStream::QueuingStrategy, api::ReadableStream::ValuesOptions, \
31 api::ReadableStream::ReadableStreamAsyncIterator, \
32 api::ReadableStream::ReadableStreamAsyncIterator::Next, api::CompressionStream, \
33 api::DecompressionStream, api::TextEncoderStream, api::TextDecoderStream, \
34 api::TextDecoderStream::TextDecoderStreamInit, api::ByteLengthQueuingStrategy, \
35 api::CountQueuingStrategy, api::QueuingStrategyInit
36// The list of streams.h types that are added to worker.c++'s JSG_DECLARE_ISOLATE_TYPE
37 
38} // namespace workerd::api