-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Implement Header encoding selectors on SocketsHttpHandler #39468
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
MihaZupan
merged 15 commits into
dotnet:master
from
MihaZupan:header-encoding-socketshttp
Jul 30, 2020
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
22ca8bb
Expose HeaderEncodingSelectors on SocketsHttpHandler
MihaZupan 2c425e4
Implement header encoding selectors in SocketsHttpHandler
MihaZupan 17b43ec
Add header encoding tests
MihaZupan 43b8caf
Add summaries for new APIs
MihaZupan 5a13ba0
Use Stream.Write(byte[], int, int) overloads for framework compat
MihaZupan 202268f
Add dummy API implementation to browser target
MihaZupan 6c6a078
Merge branch 'master' into header-encoding-socketshttp
MihaZupan 5aeaf40
HPack/QPack fixes
MihaZupan 7a44c28
Move HeaderEncodingSelector delegate to namespace, add TContext
MihaZupan be0dcdd
Encoding fixes
MihaZupan c171683
Remove unused using
MihaZupan 9b4fb5d
Merge master
MihaZupan 23c1d61
Simplify test
MihaZupan 5cc1ddd
HttpConnection PR feedback
MihaZupan 4e248e4
Simplify fast-path detection
MihaZupan 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have evidence that Latin1 will be used frequently or in perf-sensitive scenarios?
I would have expected people to largely use UTF-8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latin1 is the scenario required/requested to achieve compatibility with .Net Framework behavior (not throwing on non-ascii chars).
I expect the 99% use case for this to be UTF8 and Latin1, so I believe it is worth special-casing both, as keeping Latin1 optimizations shouldn't hurt UTF8 perf.