blob: e74b84bcf0782e5992a99cdfd3c9b44ec6fb3f1d [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/web-transport/#receive-stream
[ Exposed=(Window,Worker),
RuntimeEnabled=QuicTransport ]
interface ReceiveStream {
// IncomingStream interface. In the standard this is a mixin, but we can't use
// a mixin in the implementation because BidirectionalStream would end up
// inheriting from two mixins, causing diamond inheritance.
readonly attribute ReadableStream readable;
readonly attribute Promise<StreamAbortInfo> readingAborted;
void abortReading(optional StreamAbortInfo abortInfo = {});
};