Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit f4f168e

Browse files
committed
p3: add request-options#clone
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
1 parent 2995fe0 commit f4f168e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wit-0.3.0-draft/types.wit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ interface types {
406406
/// body stream. An error return value indicates that this timeout is not
407407
/// supported or that this handle is immutable.
408408
set-between-bytes-timeout: func(duration: option<duration>) -> result<_, request-options-error>;
409+
410+
/// Make a deep copy of the `request-options`.
411+
/// The resulting `request-options` is mutable.
412+
clone: func() -> request-options;
409413
}
410414

411415
/// This type corresponds to the HTTP standard Status Code.

0 commit comments

Comments
 (0)