@@ -10,18 +10,18 @@ outgoing HTTP requests.</p>
10
10
<li >interface <a href =" #wasi:io_error_0.2.0_rc_2023_11_10 " ><code >wasi:io/error@0.2.0-rc-2023-11-10</code ></a ></li >
11
11
<li >interface <a href =" #wasi:io_poll_0.2.0_rc_2023_11_10 " ><code >wasi:io/poll@0.2.0-rc-2023-11-10</code ></a ></li >
12
12
<li >interface <a href =" #wasi:io_streams_0.2.0_rc_2023_11_10 " ><code >wasi:io/streams@0.2.0-rc-2023-11-10</code ></a ></li >
13
- <li >interface <a href =" #wasi:cli_stdout_0.2.0_rc_2023_12_05 " ><code >wasi:cli/stdout@0.2.0-rc-2023-12-05 </code ></a ></li >
14
- <li >interface <a href =" #wasi:cli_stderr_0.2.0_rc_2023_12_05 " ><code >wasi:cli/stderr@0.2.0-rc-2023-12-05 </code ></a ></li >
15
- <li >interface <a href =" #wasi:cli_stdin_0.2.0_rc_2023_12_05 " ><code >wasi:cli/stdin@0.2.0-rc-2023-12-05 </code ></a ></li >
13
+ <li >interface <a href =" #wasi:cli_stdout_0.2.0_rc_2024_01_16 " ><code >wasi:cli/stdout@0.2.0-rc-2024-01-16 </code ></a ></li >
14
+ <li >interface <a href =" #wasi:cli_stderr_0.2.0_rc_2024_01_16 " ><code >wasi:cli/stderr@0.2.0-rc-2024-01-16 </code ></a ></li >
15
+ <li >interface <a href =" #wasi:cli_stdin_0.2.0_rc_2024_01_16 " ><code >wasi:cli/stdin@0.2.0-rc-2024-01-16 </code ></a ></li >
16
16
<li >interface <a href =" #wasi:clocks_monotonic_clock_0.2.0_rc_2023_11_10 " ><code >wasi:clocks/monotonic-clock@0.2.0-rc-2023-11-10</code ></a ></li >
17
- <li >interface <a href =" #wasi:http_types_0.2.0_rc_2023_12_05 " ><code >wasi:http/types@0.2.0-rc-2023-12-05 </code ></a ></li >
18
- <li >interface <a href =" #wasi:http_outgoing_handler_0.2.0_rc_2023_12_05 " ><code >wasi:http/outgoing-handler@0.2.0-rc-2023-12-05 </code ></a ></li >
17
+ <li >interface <a href =" #wasi:http_types_0.2.0_rc_2024_01_16 " ><code >wasi:http/types@0.2.0-rc-2024-01-16 </code ></a ></li >
18
+ <li >interface <a href =" #wasi:http_outgoing_handler_0.2.0_rc_2024_01_16 " ><code >wasi:http/outgoing-handler@0.2.0-rc-2024-01-16 </code ></a ></li >
19
19
<li >interface <a href =" #wasi:clocks_wall_clock_0.2.0_rc_2023_11_10 " ><code >wasi:clocks/wall-clock@0.2.0-rc-2023-11-10</code ></a ></li >
20
20
</ul >
21
21
</li >
22
22
<li >Exports:
23
23
<ul >
24
- <li >interface <a href =" #wasi:http_incoming_handler_0.2.0_rc_2023_12_05 " ><code >wasi:http/incoming-handler@0.2.0-rc-2023-12-05 </code ></a ></li >
24
+ <li >interface <a href =" #wasi:http_incoming_handler_0.2.0_rc_2024_01_16 " ><code >wasi:http/incoming-handler@0.2.0-rc-2024-01-16 </code ></a ></li >
25
25
</ul >
26
26
</li >
27
27
</ul >
@@ -191,6 +191,10 @@ polled for using <code>wasi:io/poll</code>.</h2>
191
191
<h3 >Functions</h3 >
192
192
<h4 ><a name =" method_input_stream.read " ><code >[method]input-stream.read: func</code ></a ></h4 >
193
193
<p >Perform a non-blocking read from the stream.</p >
194
+ <p >When the source of a <code >read</code > is binary data, the bytes from the source
195
+ are returned verbatim. When the source of a <code >read</code > is known to the
196
+ implementation to be text, bytes containing the UTF-8 encoding of the
197
+ text are returned.</p >
194
198
<p >This function returns a list of bytes containing the read data,
195
199
when successful. The returned list will contain up to <code >len</code > bytes;
196
200
it may return fewer than requested, but not more. The list is
@@ -286,6 +290,11 @@ error.</p>
286
290
</ul >
287
291
<h4 ><a name =" method_output_stream.write " ><code >[method]output-stream.write: func</code ></a ></h4 >
288
292
<p >Perform a write. This function never blocks.</p >
293
+ <p >When the destination of a <code >write</code > is binary data, the bytes from
294
+ <code >contents</code > are written verbatim. When the destination of a <code >write</code > is
295
+ known to the implementation to be text, the bytes of <code >contents</code > are
296
+ transcoded from UTF-8 into the encoding of the destination and then
297
+ written.</p >
289
298
<p >Precondition: check-write gave permit of Ok(n) and contents has a
290
299
length of less than or equal to n. Otherwise, this function will trap.</p >
291
300
<p >returns Err(closed) without writing if the stream has closed since
@@ -459,7 +468,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
459
468
<ul >
460
469
<li ><a name =" method_output_stream.blocking_splice.0 " ></a > result< ; <code >u64</code >, <a href =" #stream_error " ><a href =" #stream_error " ><code >stream-error</code ></a ></a >> ; </li >
461
470
</ul >
462
- <h2 ><a name =" wasi:cli_stdout_0.2.0_rc_2023_12_05 " >Import interface wasi:cli/stdout@0.2.0-rc-2023-12-05 </a ></h2 >
471
+ <h2 ><a name =" wasi:cli_stdout_0.2.0_rc_2024_01_16 " >Import interface wasi:cli/stdout@0.2.0-rc-2024-01-16 </a ></h2 >
463
472
<hr />
464
473
<h3 >Types</h3 >
465
474
<h4 ><a name =" output_stream " ><code >type output-stream</code ></a ></h4 >
@@ -472,7 +481,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
472
481
<ul >
473
482
<li ><a name =" get_stdout.0 " ></a > own< ; <a href =" #output_stream " ><a href =" #output_stream " ><code >output-stream</code ></a ></a >> ; </li >
474
483
</ul >
475
- <h2 ><a name =" wasi:cli_stderr_0.2.0_rc_2023_12_05 " >Import interface wasi:cli/stderr@0.2.0-rc-2023-12-05 </a ></h2 >
484
+ <h2 ><a name =" wasi:cli_stderr_0.2.0_rc_2024_01_16 " >Import interface wasi:cli/stderr@0.2.0-rc-2024-01-16 </a ></h2 >
476
485
<hr />
477
486
<h3 >Types</h3 >
478
487
<h4 ><a name =" output_stream " ><code >type output-stream</code ></a ></h4 >
@@ -485,7 +494,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
485
494
<ul >
486
495
<li ><a name =" get_stderr.0 " ></a > own< ; <a href =" #output_stream " ><a href =" #output_stream " ><code >output-stream</code ></a ></a >> ; </li >
487
496
</ul >
488
- <h2 ><a name =" wasi:cli_stdin_0.2.0_rc_2023_12_05 " >Import interface wasi:cli/stdin@0.2.0-rc-2023-12-05 </a ></h2 >
497
+ <h2 ><a name =" wasi:cli_stdin_0.2.0_rc_2024_01_16 " >Import interface wasi:cli/stdin@0.2.0-rc-2024-01-16 </a ></h2 >
489
498
<hr />
490
499
<h3 >Types</h3 >
491
500
<h4 ><a name =" input_stream " ><code >type input-stream</code ></a ></h4 >
@@ -559,7 +568,7 @@ occured.</p>
559
568
<ul >
560
569
<li ><a name =" subscribe_duration.0 " ></a > own< ; <a href =" #pollable " ><a href =" #pollable " ><code >pollable</code ></a ></a >> ; </li >
561
570
</ul >
562
- <h2 ><a name =" wasi:http_types_0.2.0_rc_2023_12_05 " >Import interface wasi:http/types@0.2.0-rc-2023-12-05 </a ></h2 >
571
+ <h2 ><a name =" wasi:http_types_0.2.0_rc_2024_01_16 " >Import interface wasi:http/types@0.2.0-rc-2024-01-16 </a ></h2 >
563
572
<p >This interface defines all of the types and methods for implementing
564
573
HTTP Requests and Responses, both incoming and outgoing, as well as
565
574
their headers, trailers, and bodies.</p >
@@ -1445,7 +1454,7 @@ but those will be reported by the <a href="#incoming_body"><code>incoming-body</
1445
1454
<ul >
1446
1455
<li ><a name =" method_future_incoming_response.get.0 " ></a > option< ; result< ; result< ; own< ; <a href =" #incoming_response " ><a href =" #incoming_response " ><code >incoming-response</code ></a ></a >> ; , <a href =" #error_code " ><a href =" #error_code " ><code >error-code</code ></a ></a >> ;> ;> ; </li >
1447
1456
</ul >
1448
- <h2 ><a name =" wasi:http_outgoing_handler_0.2.0_rc_2023_12_05 " >Import interface wasi:http/outgoing-handler@0.2.0-rc-2023-12-05 </a ></h2 >
1457
+ <h2 ><a name =" wasi:http_outgoing_handler_0.2.0_rc_2024_01_16 " >Import interface wasi:http/outgoing-handler@0.2.0-rc-2024-01-16 </a ></h2 >
1449
1458
<p >This interface defines a handler of outgoing HTTP Requests. It should be
1450
1459
imported by components which wish to make HTTP Requests.</p >
1451
1460
<hr />
@@ -1523,7 +1532,7 @@ also known as <a href="https://en.wikipedia.org/wiki/Unix_time">Unix Time</a>.</
1523
1532
<ul >
1524
1533
<li ><a name =" resolution.0 " ></a > <a href =" #datetime " ><a href =" #datetime " ><code >datetime</code ></a ></a ></li >
1525
1534
</ul >
1526
- <h2 ><a name =" wasi:http_incoming_handler_0.2.0_rc_2023_12_05 " >Export interface wasi:http/incoming-handler@0.2.0-rc-2023-12-05 </a ></h2 >
1535
+ <h2 ><a name =" wasi:http_incoming_handler_0.2.0_rc_2024_01_16 " >Export interface wasi:http/incoming-handler@0.2.0-rc-2024-01-16 </a ></h2 >
1527
1536
<hr />
1528
1537
<h3 >Types</h3 >
1529
1538
<h4 ><a name =" incoming_request " ><code >type incoming-request</code ></a ></h4 >
0 commit comments