Skip to content

Commit c6fb95f

Browse files
authored
Merge pull request #85 from alexcrichton/rename-ms
Drop `-ms` suffix for request options
2 parents 2befff6 + 25ba0e0 commit c6fb95f

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

proxy.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,73 +1079,73 @@ another component by e.g. <code>outgoing-handler.handle</code>.</p>
10791079
<ul>
10801080
<li><a name="constructor_request_options.0"></a> own&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
10811081
</ul>
1082-
<h4><a name="method_request_options.connect_timeout_ms"><code>[method]request-options.connect-timeout-ms: func</code></a></h4>
1082+
<h4><a name="method_request_options.connect_timeout"><code>[method]request-options.connect-timeout: func</code></a></h4>
10831083
<p>The timeout for the initial connect to the HTTP Server.</p>
10841084
<h5>Params</h5>
10851085
<ul>
1086-
<li><a name="method_request_options.connect_timeout_ms.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1086+
<li><a name="method_request_options.connect_timeout.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
10871087
</ul>
10881088
<h5>Return values</h5>
10891089
<ul>
1090-
<li><a name="method_request_options.connect_timeout_ms.0"></a> option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
1090+
<li><a name="method_request_options.connect_timeout.0"></a> option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
10911091
</ul>
1092-
<h4><a name="method_request_options.set_connect_timeout_ms"><code>[method]request-options.set-connect-timeout-ms: func</code></a></h4>
1092+
<h4><a name="method_request_options.set_connect_timeout"><code>[method]request-options.set-connect-timeout: func</code></a></h4>
10931093
<p>Set the timeout for the initial connect to the HTTP Server. An error
10941094
return value indicates that this timeout is not supported.</p>
10951095
<h5>Params</h5>
10961096
<ul>
1097-
<li><a name="method_request_options.set_connect_timeout_ms.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1098-
<li><a name="method_request_options.set_connect_timeout_ms.ms"><code>ms</code></a>: option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
1097+
<li><a name="method_request_options.set_connect_timeout.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1098+
<li><a name="method_request_options.set_connect_timeout.ms"><code>ms</code></a>: option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
10991099
</ul>
11001100
<h5>Return values</h5>
11011101
<ul>
1102-
<li><a name="method_request_options.set_connect_timeout_ms.0"></a> result</li>
1102+
<li><a name="method_request_options.set_connect_timeout.0"></a> result</li>
11031103
</ul>
1104-
<h4><a name="method_request_options.first_byte_timeout_ms"><code>[method]request-options.first-byte-timeout-ms: func</code></a></h4>
1104+
<h4><a name="method_request_options.first_byte_timeout"><code>[method]request-options.first-byte-timeout: func</code></a></h4>
11051105
<p>The timeout for receiving the first byte of the Response body.</p>
11061106
<h5>Params</h5>
11071107
<ul>
1108-
<li><a name="method_request_options.first_byte_timeout_ms.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1108+
<li><a name="method_request_options.first_byte_timeout.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
11091109
</ul>
11101110
<h5>Return values</h5>
11111111
<ul>
1112-
<li><a name="method_request_options.first_byte_timeout_ms.0"></a> option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
1112+
<li><a name="method_request_options.first_byte_timeout.0"></a> option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
11131113
</ul>
1114-
<h4><a name="method_request_options.set_first_byte_timeout_ms"><code>[method]request-options.set-first-byte-timeout-ms: func</code></a></h4>
1114+
<h4><a name="method_request_options.set_first_byte_timeout"><code>[method]request-options.set-first-byte-timeout: func</code></a></h4>
11151115
<p>Set the timeout for receiving the first byte of the Response body. An
11161116
error return value indicates that this timeout is not supported.</p>
11171117
<h5>Params</h5>
11181118
<ul>
1119-
<li><a name="method_request_options.set_first_byte_timeout_ms.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1120-
<li><a name="method_request_options.set_first_byte_timeout_ms.ms"><code>ms</code></a>: option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
1119+
<li><a name="method_request_options.set_first_byte_timeout.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1120+
<li><a name="method_request_options.set_first_byte_timeout.ms"><code>ms</code></a>: option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
11211121
</ul>
11221122
<h5>Return values</h5>
11231123
<ul>
1124-
<li><a name="method_request_options.set_first_byte_timeout_ms.0"></a> result</li>
1124+
<li><a name="method_request_options.set_first_byte_timeout.0"></a> result</li>
11251125
</ul>
1126-
<h4><a name="method_request_options.between_bytes_timeout_ms"><code>[method]request-options.between-bytes-timeout-ms: func</code></a></h4>
1126+
<h4><a name="method_request_options.between_bytes_timeout"><code>[method]request-options.between-bytes-timeout: func</code></a></h4>
11271127
<p>The timeout for receiving subsequent chunks of bytes in the Response
11281128
body stream.</p>
11291129
<h5>Params</h5>
11301130
<ul>
1131-
<li><a name="method_request_options.between_bytes_timeout_ms.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1131+
<li><a name="method_request_options.between_bytes_timeout.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
11321132
</ul>
11331133
<h5>Return values</h5>
11341134
<ul>
1135-
<li><a name="method_request_options.between_bytes_timeout_ms.0"></a> option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
1135+
<li><a name="method_request_options.between_bytes_timeout.0"></a> option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
11361136
</ul>
1137-
<h4><a name="method_request_options.set_between_bytes_timeout_ms"><code>[method]request-options.set-between-bytes-timeout-ms: func</code></a></h4>
1137+
<h4><a name="method_request_options.set_between_bytes_timeout"><code>[method]request-options.set-between-bytes-timeout: func</code></a></h4>
11381138
<p>Set the timeout for receiving subsequent chunks of bytes in the Response
11391139
body stream. An error return value indicates that this timeout is not
11401140
supported.</p>
11411141
<h5>Params</h5>
11421142
<ul>
1143-
<li><a name="method_request_options.set_between_bytes_timeout_ms.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1144-
<li><a name="method_request_options.set_between_bytes_timeout_ms.ms"><code>ms</code></a>: option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
1143+
<li><a name="method_request_options.set_between_bytes_timeout.self"><code>self</code></a>: borrow&lt;<a href="#request_options"><a href="#request_options"><code>request-options</code></a></a>&gt;</li>
1144+
<li><a name="method_request_options.set_between_bytes_timeout.ms"><code>ms</code></a>: option&lt;<a href="#duration"><a href="#duration"><code>duration</code></a></a>&gt;</li>
11451145
</ul>
11461146
<h5>Return values</h5>
11471147
<ul>
1148-
<li><a name="method_request_options.set_between_bytes_timeout_ms.0"></a> result</li>
1148+
<li><a name="method_request_options.set_between_bytes_timeout.0"></a> result</li>
11491149
</ul>
11501150
<h4><a name="static_response_outparam.set"><code>[static]response-outparam.set: func</code></a></h4>
11511151
<p>Set the value of the <a href="#response_outparam"><code>response-outparam</code></a> to either send a response,

wit/types.wit

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ interface types {
191191
append: func(name: field-key, value: field-value) -> result<_, header-error>;
192192

193193
/// Retrieve the full set of keys and values in the Fields. Like the
194-
/// constructor, the list represents each key-value pair.
194+
/// constructor, the list represents each key-value pair.
195195
///
196196
/// The outer list represents each key-value pair in the Fields. Keys
197197
/// which have multiple values are represented by multiple entries in this
@@ -308,9 +308,9 @@ interface types {
308308
headers: func() -> headers;
309309
}
310310

311-
/// Parameters for making an HTTP Request. Each of these parameters is an
312-
/// optional timeout, with the unit in milliseconds, applicable to the
313-
/// transport layer of the HTTP protocol.
311+
/// Parameters for making an HTTP Request. Each of these parameters is
312+
/// currently an optional timeout applicable to the transport layer of the
313+
/// HTTP protocol.
314314
///
315315
/// These timeouts are separate from any the user may use to bound a
316316
/// blocking call to `wasi:io/poll.poll`.
@@ -319,27 +319,27 @@ interface types {
319319
constructor();
320320

321321
/// The timeout for the initial connect to the HTTP Server.
322-
connect-timeout-ms: func() -> option<duration>;
322+
connect-timeout: func() -> option<duration>;
323323

324324
/// Set the timeout for the initial connect to the HTTP Server. An error
325325
/// return value indicates that this timeout is not supported.
326-
set-connect-timeout-ms: func(ms: option<duration>) -> result;
326+
set-connect-timeout: func(ms: option<duration>) -> result;
327327

328328
/// The timeout for receiving the first byte of the Response body.
329-
first-byte-timeout-ms: func() -> option<duration>;
329+
first-byte-timeout: func() -> option<duration>;
330330

331331
/// Set the timeout for receiving the first byte of the Response body. An
332332
/// error return value indicates that this timeout is not supported.
333-
set-first-byte-timeout-ms: func(ms: option<duration>) -> result;
333+
set-first-byte-timeout: func(ms: option<duration>) -> result;
334334

335335
/// The timeout for receiving subsequent chunks of bytes in the Response
336336
/// body stream.
337-
between-bytes-timeout-ms: func() -> option<duration>;
337+
between-bytes-timeout: func() -> option<duration>;
338338

339339
/// Set the timeout for receiving subsequent chunks of bytes in the Response
340340
/// body stream. An error return value indicates that this timeout is not
341341
/// supported.
342-
set-between-bytes-timeout-ms: func(ms: option<duration>) -> result;
342+
set-between-bytes-timeout: func(ms: option<duration>) -> result;
343343
}
344344

345345
/// Represents the ability to send an HTTP Response.

0 commit comments

Comments
 (0)