blob: cb1c3d389ee534b5bc265e253ab711b36f1a1432 [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/#send-stream
[ Exposed=(Window,Worker),
RuntimeEnabled=QuicTransport ]
interface SendStream {
// OutgoingStream 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 WritableStream writable;
readonly attribute Promise<StreamAbortInfo> writingAborted;
void abortWriting(optional StreamAbortInfo abortInfo = {});
};