-
Notifications
You must be signed in to change notification settings - Fork 1.6k
HTTP Version Selection #4870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
carlossanlop
merged 4 commits into
dotnet:net5-rc2
from
aik-jahoda:jajahoda/httpversionselection
Sep 22, 2020
Merged
HTTP Version Selection #4870
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
<BaseTypeName>System.Enum</BaseTypeName> | ||
</Base> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>Specifies behaviors for selecting and negotiating the HTTP version for a request.</summary> | ||
<remarks>To be added.</remarks> | ||
</Docs> | ||
<Members> | ||
|
@@ -34,7 +34,15 @@ | |
</ReturnValue> | ||
<MemberValue>2</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>Only use the requested version. Throws an <see cref="HttpRequestException" /> if a connection with the exact version cannot be established.</summary> | ||
aik-jahoda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<remarks> | ||
<format type="text/markdown"><![CDATA[ | ||
|
||
## Remarks | ||
This option allows for use of a prenegotiated clear text connection for the requested version. | ||
|
||
]]></format> | ||
</remarks> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="RequestVersionOrHigher"> | ||
|
@@ -54,7 +62,17 @@ | |
</ReturnValue> | ||
<MemberValue>1</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>Use the highest available version, downgrading only to the requested version but not below. Throws an <see cref="HttpRequestException" /> if a connection with higher or equal version cannot be established.</summary> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here with exception
aik-jahoda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<remarks> | ||
<format type="text/markdown"><![CDATA[ | ||
|
||
## Remarks | ||
If the server supports a higher version than the requested version (either negotiated via ALPN (H2) or advertised via Alt-Svc (H3)) and a secure connection is requested, the result is the highest available version. Otherwise, the version downgrades to <see cref="HttpRequestMessage.Version" />. | ||
|
||
This option allows use of a prenegotiated clear text connection for the requested version but not for a higher version. | ||
|
||
]]></format> | ||
</remarks> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="RequestVersionOrLower"> | ||
|
@@ -74,7 +92,16 @@ | |
</ReturnValue> | ||
<MemberValue>0</MemberValue> | ||
<Docs> | ||
<summary>To be added.</summary> | ||
<summary>Use the requested version or downgrade to a lower one. This is the default behavior.</summary> | ||
<remarks> | ||
<format type="text/markdown"><![CDATA[ | ||
|
||
## Remarks | ||
If the server supports the requested version, either negotiated via ALPN (H2) or advertised via Alt-Svc (H3), and a secure connection is being requested, the result is the <see cref="HttpRequestMessage.Version" />. Otherwise, the version downgrades to HTTP/1.1. | ||
|
||
This option does not allow use of a prenegotiated clear text connection, for example, H2C. | ||
]]></format> | ||
</remarks> | ||
</Docs> | ||
</Member> | ||
</Members> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.