-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add decode_text parameter to WebSocket for receiving TEXT as bytes #11764
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
Merged
Changes from 36 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
11f2435
Add option to avoid decoding WebSocket TEXT
bdraco 38b3c34
touch ups
bdraco 104666b
decode type
bdraco 348529d
coverage for bytes loads
bdraco 286ca9b
Merge branch 'master' into no_decode_websocket_option
bdraco 421896a
unpack
bdraco e9c5a7a
fallback overloads
bdraco 10f7c52
fallback overloads
bdraco baab16e
fallback overloads
bdraco 3c3ad78
fallback overloads
bdraco ca14d5f
fallback overloads
bdraco 2e6d996
fallback overloads
bdraco 550ca1a
fallback overloads
bdraco bc4f6a0
fallback overloads
bdraco 5620648
fallback overloads
bdraco e025546
fallback overloads
bdraco 5ef6d87
narrow receive
bdraco 500c239
narrow receive
bdraco 2b85337
narrow
bdraco ef7b0b2
default only works on py3.13+
bdraco 51b6154
no fallback;
bdraco 5328513
no fallback;
bdraco 976d816
try another way for fallback
bdraco f6d9d1e
try another way for fallback
bdraco 39f2a47
need to have default or everything has to be updated
bdraco df9d892
update tests as well
bdraco 4ecc82c
infer from false
bdraco 6bd3b60
just set them
bdraco cd9a044
just set them
bdraco c34ba73
just set them
bdraco fc32471
cleanup
bdraco 743132d
changelog
bdraco 633fc46
reduce
bdraco a49441f
reduce
bdraco 55852de
fix changelog
bdraco b6493ee
changelog
bdraco f8015af
Update pyproject.toml
bdraco 69c13bf
Update aiohttp/_websocket/models.py
bdraco 79a9036
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] ec38532
tweaks
bdraco 73e297f
Merge remote-tracking branch 'upstream/no_decode_websocket_option' in…
bdraco 080880d
newer syntax
bdraco d639aaf
narrow to bytes
bdraco c85cce7
docs
bdraco 637d829
Merge branch 'master' into no_decode_websocket_option
bdraco 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Added ``decode_text`` parameter to :meth:`~aiohttp.ClientSession.ws_connect` and :class:`~aiohttp.web.WebSocketResponse` to receive WebSocket TEXT messages as raw bytes instead of decoded strings, enabling direct use with high-performance JSON parsers like ``orjson`` -- by :user:`bdraco`. |
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 11763.feature.rst |
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.