Skip to content

Commit d6380fa

Browse files
authored
Update HttpRequestMessage version for 3.0 (#3285)
* Update HttpRequestMessage.xml * Update HttpRequestMessage.xml Playing around with formatting. * Update xml/System.Net.Http/HttpRequestMessage.xml Co-Authored-By: Maira Wenzel <[email protected]> * Apply suggestions from code review Co-Authored-By: Maira Wenzel <[email protected]> * Update HttpRequestMessage.xml * Update HttpRequestMessage.xml * Update HttpRequestMessage.xml * Update HttpRequestMessage.xml * Update xml/System.Net.Http/HttpRequestMessage.xml Co-Authored-By: Maira Wenzel <[email protected]> * Update xml/System.Net.Http/HttpRequestMessage.xml Co-Authored-By: Maira Wenzel <[email protected]> * Update HttpRequestMessage.xml
1 parent 5cba43f commit d6380fa

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

xml/System.Net.Http/HttpRequestMessage.xml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,29 @@
461461
</ReturnValue>
462462
<Docs>
463463
<summary>Gets or sets the HTTP message version.</summary>
464-
<value>The HTTP message version. The default in the .NET Framework and earlier versions of .NET Core is 1.1. In .NET Core 2.1 and later, it is 2.0.</value>
465-
<remarks>Starting with .NET Core 2.1, the default value of the `Version` property changed from 1.1 to 2.0.</remarks>
464+
<value>The HTTP message version. The default value is <c>1.1</c>, unless you're targeting .NET Core 2.1 or 2.2. In that case, the default value is <c>2.0</c>.</value>
465+
<remarks>
466+
<format type="text/markdown"><![CDATA[
467+
468+
## Remarks
469+
470+
In .NET Core, the default message version differs based on the version you're using. .NET Core 2.1 changed the default value from `1.1` to `2.0`. In .NET Core 3.0, the default value was reverted back to `1.1`.
471+
472+
### .NET Framework
473+
474+
The default message version is `1.1`.
475+
476+
### .NET Core
477+
478+
The following table lists the default message version based on the version of .NET Core:
479+
480+
| .NET Core version | HTTP request version |
481+
| --------------------------- | -------------------- |
482+
| 2.1<br/>2.2 | `2.0` |
483+
| Any other .NET Core version | `1.1` |
484+
485+
]]></format>
486+
</remarks>
466487
</Docs>
467488
</Member>
468489
</Members>

0 commit comments

Comments
 (0)