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/SocketsHttpHandler.xml
+28-2Lines changed: 28 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1124,7 +1124,20 @@ For example, if the value is 64, then 65,536 bytes are allowed for the maximum r
1124
1124
<Docs>
1125
1125
<summary>Gets or sets a callback that selects the <seecref="System.Text.Encoding" /> to encode request header values.</summary>
1126
1126
<value>The header encoding selector callback that selects the <seecref="System.Text.Encoding" /> to encode the value for the specified request header name, or <seelangword="null" /> to indicate the default behavior.</value>
1127
-
<remarks>To be added.</remarks>
1127
+
<remarks>
1128
+
<formattype="text/markdown"><![CDATA[
1129
+
1130
+
## Remarks
1131
+
1132
+
When specifying an encoding, you're generally expected to use one of the following encoding schemes: <xref:System.Text.Encoding.ASCII>, <xref:System.Text.Encoding.Latin1>, or <xref:System.Text.Encoding.UTF8>. Other encoding schemes might be susceptible to request smuggling attacks.
1133
+
1134
+
> [!CAUTION]
1135
+
> Fixed multi-byte encoding schemes in particular (for example, <xref:System.Text.Encoding.Unicode> or <xref:System.Text.Encoding.UTF32>) must never be used, as their binary representation is likely to be misinterpreted and break the protocol. For instance, part of `✊` might be interpreted as a new line (`\n`) that terminates the header value.
1136
+
1137
+
When you specify an encoding, it's your responsibility to ensure that the values are representable via the encoding, and that the server agrees on the encoding used. Otherwise, values will become corrupted. For example, since any set of bytes is considered a valid Latin1 sequence, a server replying with UTF-8 encoded header values might see its responses silently corrupted.
1138
+
1139
+
]]></format>
1140
+
</remarks>
1128
1141
<exceptioncref="T:System.InvalidOperationException">An operation has already been started on the current instance.</exception>
1129
1142
<exceptioncref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
1130
1143
</Docs>
@@ -1199,7 +1212,20 @@ The timeout specified is greater than <see cref="F:System.Int32.MaxValue" /> mil
1199
1212
<Docs>
1200
1213
<summary>Gets or sets a callback that selects the <seecref="System.Text.Encoding" /> to decode response header values.</summary>
1201
1214
<value>The header encoding selector callback that selects the <seecref="System.Text.Encoding" /> to decode the value for the specified response header name, or <seelangword="null" /> to indicate the default behavior.</value>
1202
-
<remarks>To be added.</remarks>
1215
+
<remarks>
1216
+
<formattype="text/markdown"><![CDATA[
1217
+
1218
+
## Remarks
1219
+
1220
+
When specifying an encoding, you're generally expected to use one of the following encoding schemes: <xref:System.Text.Encoding.ASCII>, <xref:System.Text.Encoding.Latin1>, or <xref:System.Text.Encoding.UTF8>. Other encoding schemes might be susceptible to request smuggling attacks.
1221
+
1222
+
> [!CAUTION]
1223
+
> Fixed multi-byte encoding schemes in particular (for example, <xref:System.Text.Encoding.Unicode> or <xref:System.Text.Encoding.UTF32>) must never be used, as their binary representation is likely to be misinterpreted and break the protocol. For instance, part of `✊` might be interpreted as a new line (`\n`) that terminates the header value.
1224
+
1225
+
When you specify an encoding, it's your responsibility to ensure that the values are representable via the encoding, and that the server agrees on the encoding used. Otherwise, values will become corrupted. For example, since any set of bytes is considered a valid Latin1 sequence, a server replying with UTF-8 encoded header values might see its responses silently corrupted.
1226
+
1227
+
]]></format>
1228
+
</remarks>
1203
1229
<exceptioncref="T:System.InvalidOperationException">An operation has already been started on the current instance.</exception>
1204
1230
<exceptioncref="T:System.ObjectDisposedException">The current instance has been disposed.</exception>
Copy file name to clipboardExpand all lines: xml/System/Uri.xml
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2108,6 +2108,9 @@ If you used an escaped string to construct this instance (for example, `"http://
2108
2108
2109
2109
The <xref:System.Uri.Fragment%2A> property is not considered in any <xref:System.Uri.Equals%2A> comparison.
2110
2110
2111
+
> [!NOTE]
2112
+
> The property includes the leading delimiter (`#`), whereas the URI specification (RFC 3986) recognizes the fragment as the portion of a URI without the delimiter.
2113
+
2111
2114
## Examples
2112
2115
The following example creates a <xref:System.Uri> instance and writes the fragment information to the console.
2113
2116
@@ -4218,6 +4221,9 @@ The following examples show a URI and the results of calling <xref:System.Uri.Ge
4218
4221
4219
4222
For more information on IRI support, see the Remarks section for the <xref:System.Uri> class.
4220
4223
4224
+
> [!NOTE]
4225
+
> The property includes the leading delimiter (`?`), whereas the URI specification (RFC 3986) recognizes the query as the portion of a URI without the delimiter.
4226
+
4221
4227
## Examples
4222
4228
The following example writes the query `?date=today` to the console.
0 commit comments