Skip to content

Commit fc950fb

Browse files
committed
generate markdown
1 parent 69190f9 commit fc950fb

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

proxy.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ outgoing HTTP requests.</p>
1010
<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>
1111
<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>
1212
<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>
1616
<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>
1919
<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>
2020
</ul>
2121
</li>
2222
<li>Exports:
2323
<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>
2525
</ul>
2626
</li>
2727
</ul>
@@ -191,6 +191,10 @@ polled for using <code>wasi:io/poll</code>.</h2>
191191
<h3>Functions</h3>
192192
<h4><a name="method_input_stream.read"><code>[method]input-stream.read: func</code></a></h4>
193193
<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>
194198
<p>This function returns a list of bytes containing the read data,
195199
when successful. The returned list will contain up to <code>len</code> bytes;
196200
it may return fewer than requested, but not more. The list is
@@ -286,6 +290,11 @@ error.</p>
286290
</ul>
287291
<h4><a name="method_output_stream.write"><code>[method]output-stream.write: func</code></a></h4>
288292
<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>
289298
<p>Precondition: check-write gave permit of Ok(n) and contents has a
290299
length of less than or equal to n. Otherwise, this function will trap.</p>
291300
<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>
459468
<ul>
460469
<li><a name="method_output_stream.blocking_splice.0"></a> result&lt;<code>u64</code>, <a href="#stream_error"><a href="#stream_error"><code>stream-error</code></a></a>&gt;</li>
461470
</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>
463472
<hr />
464473
<h3>Types</h3>
465474
<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>
472481
<ul>
473482
<li><a name="get_stdout.0"></a> own&lt;<a href="#output_stream"><a href="#output_stream"><code>output-stream</code></a></a>&gt;</li>
474483
</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>
476485
<hr />
477486
<h3>Types</h3>
478487
<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>
485494
<ul>
486495
<li><a name="get_stderr.0"></a> own&lt;<a href="#output_stream"><a href="#output_stream"><code>output-stream</code></a></a>&gt;</li>
487496
</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>
489498
<hr />
490499
<h3>Types</h3>
491500
<h4><a name="input_stream"><code>type input-stream</code></a></h4>
@@ -559,7 +568,7 @@ occured.</p>
559568
<ul>
560569
<li><a name="subscribe_duration.0"></a> own&lt;<a href="#pollable"><a href="#pollable"><code>pollable</code></a></a>&gt;</li>
561570
</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>
563572
<p>This interface defines all of the types and methods for implementing
564573
HTTP Requests and Responses, both incoming and outgoing, as well as
565574
their headers, trailers, and bodies.</p>
@@ -1445,7 +1454,7 @@ but those will be reported by the <a href="#incoming_body"><code>incoming-body</
14451454
<ul>
14461455
<li><a name="method_future_incoming_response.get.0"></a> option&lt;result&lt;result&lt;own&lt;<a href="#incoming_response"><a href="#incoming_response"><code>incoming-response</code></a></a>&gt;, <a href="#error_code"><a href="#error_code"><code>error-code</code></a></a>&gt;&gt;&gt;</li>
14471456
</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>
14491458
<p>This interface defines a handler of outgoing HTTP Requests. It should be
14501459
imported by components which wish to make HTTP Requests.</p>
14511460
<hr />
@@ -1523,7 +1532,7 @@ also known as <a href="https://en.wikipedia.org/wiki/Unix_time">Unix Time</a>.</
15231532
<ul>
15241533
<li><a name="resolution.0"></a> <a href="#datetime"><a href="#datetime"><code>datetime</code></a></a></li>
15251534
</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>
15271536
<hr />
15281537
<h3>Types</h3>
15291538
<h4><a name="incoming_request"><code>type incoming-request</code></a></h4>

0 commit comments

Comments
 (0)