Skip to content

Commit

Permalink
Drop -ms suffix for request options
Browse files Browse the repository at this point in the history
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 WebAssembly#78
  • Loading branch information
alexcrichton committed Nov 27, 2023
1 parent 2befff6 commit a11801d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wit/types.wit
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ interface types {
append: func(name: field-key, value: field-value) -> result<_, header-error>;

/// Retrieve the full set of keys and values in the Fields. Like the
/// constructor, the list represents each key-value pair.
/// constructor, the list represents each key-value pair.
///
/// The outer list represents each key-value pair in the Fields. Keys
/// which have multiple values are represented by multiple entries in this
Expand Down Expand Up @@ -319,27 +319,27 @@ interface types {
constructor();

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

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

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

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

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

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

/// Represents the ability to send an HTTP Response.
Expand Down

0 comments on commit a11801d

Please # to comment.