We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13dad38 + 3846d2f commit a81c61fCopy full SHA for a81c61f
wit-0.3.0-draft/types.wit
@@ -198,6 +198,14 @@ interface types {
198
/// Fails with `header-error.immutable` if the `fields` are immutable.
199
delete: func(name: field-key) -> result<_, header-error>;
200
201
+ /// Delete all values for a key. Does nothing if no values for the key
202
+ /// exist.
203
+ ///
204
+ /// Returns all values previously corresponding to the key, if any.
205
206
+ /// Fails with `header-error.immutable` if the `fields` are immutable.
207
+ get-and-delete: func(name: field-key) -> result<list<field-value>, header-error>;
208
+
209
/// Append a value for a key. Does not change or delete any existing
210
/// values for that key.
211
///
0 commit comments