summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/webtransport.idl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/interfaces/webtransport.idl')
-rw-r--r--testing/web-platform/tests/interfaces/webtransport.idl14
1 files changed, 13 insertions, 1 deletions
diff --git a/testing/web-platform/tests/interfaces/webtransport.idl b/testing/web-platform/tests/interfaces/webtransport.idl
index 281c096d21..e598059c93 100644
--- a/testing/web-platform/tests/interfaces/webtransport.idl
+++ b/testing/web-platform/tests/interfaces/webtransport.idl
@@ -23,6 +23,9 @@ interface WebTransport {
readonly attribute Promise<undefined> ready;
readonly attribute WebTransportReliabilityMode reliability;
readonly attribute WebTransportCongestionControl congestionControl;
+ [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams;
+ [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingBidirectionalStreams;
+
readonly attribute Promise<WebTransportCloseInfo> closed;
readonly attribute Promise<undefined> draining;
undefined close(optional WebTransportCloseInfo closeInfo = {});
@@ -59,6 +62,8 @@ dictionary WebTransportOptions {
boolean requireUnreliable = false;
sequence<WebTransportHash> serverCertificateHashes;
WebTransportCongestionControl congestionControl = "default";
+ [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams = null;
+ [EnforceRange] unsigned short? anticipatedConcurrentIncomingBidirectionalStreams = null;
};
enum WebTransportCongestionControl {
@@ -93,8 +98,9 @@ dictionary WebTransportConnectionStats {
};
dictionary WebTransportDatagramStats {
- unsigned long long expiredOutgoing;
unsigned long long droppedIncoming;
+ unsigned long long expiredIncoming;
+ unsigned long long expiredOutgoing;
unsigned long long lostOutgoing;
};
@@ -103,6 +109,7 @@ interface WebTransportSendStream : WritableStream {
attribute WebTransportSendGroup? sendGroup;
attribute long long sendOrder;
Promise<WebTransportSendStreamStats> getStats();
+ WebTransportWriter getWriter();
};
dictionary WebTransportSendStreamStats {
@@ -132,6 +139,11 @@ interface WebTransportBidirectionalStream {
readonly attribute WebTransportSendStream writable;
};
+[Exposed=*, SecureContext]
+interface WebTransportWriter : WritableStreamDefaultWriter {
+ Promise<undefined> atomicWrite(optional any chunk);
+};
+
[Exposed=(Window,Worker), Serializable, SecureContext]
interface WebTransportError : DOMException {
constructor(optional DOMString message = "", optional WebTransportErrorOptions options = {});