@@ -37,10 +37,16 @@ interface types {
37
37
unexpected-error (string )
38
38
}
39
39
40
- /// This tyep enumerates the different kinds of errors that may occur when
40
+ /// This type enumerates the different kinds of errors that may occur when
41
41
/// setting or appending to a `fields` resource.
42
42
variant header-error {
43
+ /// This error indicates that a `field-key` or `field-value` was
44
+ /// syntactically invalid when used with an operation that sets headers in a
45
+ /// `fields` .
43
46
invalid-syntax ,
47
+
48
+ /// This error indicates that a forbidden `field-key` was used when trying
49
+ /// to set a header in a `fields` .
44
50
forbidden ,
45
51
}
46
52
@@ -82,9 +88,6 @@ interface types {
82
88
83
89
/// Set all of the values for a key. Clears any existing values for that
84
90
/// key, if they have been set.
85
- ///
86
- /// The operation can fail if the name or value arguments are invalid, or if
87
- /// the name is forbidden.
88
91
set : func (name : field-key , value : list <field-value >) -> result <_ , header-error >;
89
92
90
93
/// Delete all values for a key. Does nothing if no values for the key
@@ -93,9 +96,6 @@ interface types {
93
96
94
97
/// Append a value for a key. Does not change or delete any existing
95
98
/// values for that key.
96
- ///
97
- /// The operation can fail if the name or value arguments are invalid, or if
98
- /// the name is forbidden.
99
99
append : func (name : field-key , value : field-value ) -> result <_ , header-error >;
100
100
101
101
0 commit comments