File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ @unstable (feature = tls )
2+ interface tls {
3+ @unstable (feature = tls )
4+ use wasi :io /streams @ 0.2.1 . {input-stream , output-stream };
5+ @unstable (feature = tls )
6+ use wasi :io /poll @ 0.2.1 . {pollable };
7+
8+ @unstable (feature = tls )
9+ resource client-connection {
10+ @unstable (feature = tls )
11+ constructor (input : input-stream , output : output-stream );
12+ @unstable (feature = tls )
13+ connect : func (server-name : string ) -> result <client-handshake >;
14+ }
15+
16+ @unstable (feature = tls )
17+ resource client-handshake {
18+ @unstable (feature = tls )
19+ finish : static func (this : client-handshake ) -> future-streams ;
20+ }
21+
22+ @unstable (feature = tls )
23+ resource future-streams {
24+ @unstable (feature = tls )
25+ subscribe : func () -> pollable ;
26+ @unstable (feature = tls )
27+ get : func () -> option <result <result <tuple <input-stream , output-stream >>>>;
28+ }
29+ }
30+
Original file line number Diff line number Diff line change @@ -16,4 +16,6 @@ world imports {
1616 import tcp-create-socket ;
1717 @since (version = 0.2.0 )
1818 import ip-name-lookup ;
19+ @unstable (feature = tls )
20+ import tls ;
1921}
You can’t perform that action at this time.
0 commit comments