You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Net.Http.Headers/HttpHeaders.xml
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,8 @@
127
127
<formattype="text/markdown"><'s definition. Non-ASCII characters are not allowed in a header name.
131
+
130
132
The header `values` will be parsed and validated.
131
133
132
134
If the specified header does not exist, the <xref:System.Net.Http.Headers.HttpHeaders.Add%2A> method inserts a new header into the list of header name/value pairs.
@@ -138,7 +140,7 @@
138
140
<exceptioncref="T:System.ArgumentException">The name cannot be null or empty.</exception>
139
141
<exceptioncref="T:System.ArgumentNullException">The values cannot be null or empty.</exception>
140
142
<exceptioncref="T:System.InvalidOperationException">Misused header name. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.</exception>
141
-
<exceptioncref="T:System.FormatException">Header names are enforced to be valid HTTP tokens, where a token is defined as any set of ASCII letters, digits, or symbols from the ``"!#$%&'*+-.^_`|~"`` set, matching [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-collected-abnf)'s definition. Non-ASCII characters are not allowed in a header name.
143
+
<exceptioncref="T:System.FormatException">The header name format is invalid.
142
144
143
145
-or-
144
146
@@ -187,7 +189,9 @@ The header value format is invalid for this header name, or the header does not
187
189
<formattype="text/markdown"><'s definition. Non-ASCII characters are not allowed in a header name.
193
+
194
+
The header `values` will be parsed and validated.
191
195
192
196
If the specified header does not exist, the <xref:System.Net.Http.Headers.HttpHeaders.Add%2A> method inserts a new header into the list of header name/value pairs.
193
197
@@ -197,7 +201,7 @@ The header value format is invalid for this header name, or the header does not
197
201
</remarks>
198
202
<exceptioncref="T:System.ArgumentException">The name cannot be null or empty.</exception>
199
203
<exceptioncref="T:System.InvalidOperationException">Misused header name. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.</exception>
200
-
<exceptioncref="T:System.FormatException">Header names are enforced to be valid HTTP tokens, where a token is defined as any set of ASCII letters, digits, or symbols from the ``"!#$%&'*+-.^_`|~"`` set, matching [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-collected-abnf)'s definition. Non-ASCII characters are not allowed in a header name.
204
+
<exceptioncref="T:System.FormatException">The header name format is invalid.
0 commit comments