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>
0 commit comments