From d6446b0b6dd7aaa517450c0dcd135e747d28f5b5 Mon Sep 17 00:00:00 2001 From: Dave Bakker Date: Thu, 20 Mar 2025 15:02:20 +0100 Subject: [PATCH] Expose handshake error --- imports.md | 5 ++++- wit/types.wit | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/imports.md b/imports.md index ea2d2fb..4fd87aa 100644 --- a/imports.md +++ b/imports.md @@ -437,6 +437,9 @@ is ready for reading, before performing the splice.

#### `type pollable` [`pollable`](#pollable)

+#### `type io-error` +[`error`](#error) +

#### `resource client-handshake`

resource client-connection

resource future-client-streams

@@ -483,5 +486,5 @@ is ready for reading, before performing the splice.

Return values
diff --git a/wit/types.wit b/wit/types.wit index ee8a847..6c8a487 100644 --- a/wit/types.wit +++ b/wit/types.wit @@ -4,6 +4,8 @@ interface types { use wasi:io/streams@0.2.3.{input-stream, output-stream}; @unstable(feature = tls) use wasi:io/poll@0.2.3.{pollable}; + @unstable(feature = tls) + use wasi:io/error@0.2.3.{error as io-error}; @unstable(feature = tls) resource client-handshake { @@ -26,6 +28,6 @@ interface types { subscribe: func() -> pollable; @unstable(feature = tls) - get: func() -> option>>>; + get: func() -> option, io-error>>>; } }