Skip to content

Commit a11801d

Browse files
committed
Drop -ms suffix for request options
This is a leftover artifact from recent refactorings but now that it's using a `duration` type which holds its value in nanoseconds the `-ms` suffix is no longer required. Closes #78
1 parent 2befff6 commit a11801d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

wit/types.wit

Lines changed: 7 additions & 7 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
@@ -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)