-
-
Notifications
You must be signed in to change notification settings - Fork 758
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
Add default headers to WebSocket
s implementations
#1606
Merged
+110
−7
Merged
Changes from 67 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
d8a87a5
added logic to accept default headers in websocket
iudeen 170f16a
added default_headers to class init
iudeen bd28f39
fix
83a29e8
docs: added limitation about Websockets
eabe380
docs: added limitation about Websockets
5ecfd07
Update docs/settings.md
iudeen d954ef1
docs: moved websocket limitation
c7546bd
Update docs/settings.md
Kludex eef254d
Merge remote-tracking branch 'origin/master' into patch/websocket-ser…
f7fc772
feat(websockets): added server header support for websockets
87408cf
Merge branch 'encode:master' into master
iudeen 62c6c7e
feat(websockets-wsproto): added server header support for websockets
4928484
added logic to accept default headers in websocket (#1)
iudeen d4c55c7
style(websockets): formatting
8e44b69
Merge branch 'patch/websocket-server-name'
4c860f7
style(websockets): formatting
728b4b9
style(websockets): formatting
2beab89
Merge branch 'encode:master' into master
iudeen 7a8aa99
revert(websockets): removed work-around logic to add headers
94ddfe5
Revert "feat(websockets-wsproto): added server header support for web…
49b135b
feat(wsproto): Add headers support for wsproto implementation
f4ada86
docs: added limitation about Websockets - no-date-header
7a08ff0
docs: added limitation about Websockets - no-date-header
137fd38
Update uvicorn/protocols/websockets/wsproto_impl.py
iudeen e241caa
revert: removed default header logic
eede8f4
test: added test for wsproto implementation
62cbf96
style: fixed linting
877a9fc
test: added test for multiple server headers
1cbf30c
Feature/new (#2)
iudeen b061ede
flake-8 corrections
iudeen 02c96e4
run black
iudeen 3c6c915
Added support for no-server-header in Websocket Protocols
iudeen 9b79b31
ran black
iudeen 1548e92
update requirements.txt
iudeen 2b7267f
Revert "update requirements.txt"
iudeen 402be7b
update requirements to use wip main branch from Websockets
iudeen 85c342b
update requirements to use wip main branch from Websockets
iudeen 60f62c0
Merge remote-tracking branch 'upstream/master' into feature/websocket…
iudeen f290fe7
Merge remote-tracking branch 'upstream/master' into feature/websocket…
iudeen dc8a505
update requirements to use wip main branch from Websockets
iudeen 019e7d2
wip: add allow-direct-references to support installation from Git
iudeen 59cf6f4
update requirements to use wip main branch from Websockets
iudeen 866f3e9
update requirements to use wip main branch from Websockets
iudeen f6a0872
update requirements to use wip main branch from Websockets
iudeen e31cd53
Merge branch 'encode:master' into feature/websocket-headers
iudeen 9aa02c3
Bump wsproto from 1.1.0 to 1.2.0
iudeen 93af5ac
docs: amend settings.md
iudeen a86da4b
Merge remote-tracking branch 'upstream/master' into feature/websocket…
iudeen 7daff74
Merge remote-tracking branch 'upstream/master' into feature/websocket…
iudeen 97ca634
style: ran isort
iudeen 666a8b7
fix: removed `_added_names` logic to support arbitrary extra headers …
iudeen 437c066
fix: removed `_added_names` logic to support arbitrary extra headers …
iudeen 27bd66f
fix: removed `_added_names` logic to support arbitrary extra headers …
iudeen 50d2e9f
fix: removed `_added_names` logic to support arbitrary extra headers …
iudeen 37dcbd5
Merge branch 'encode:master' into feature/websocket-headers
iudeen adddfc3
Merge remote-tracking branch 'upstream/master' into feature/websocket…
iudeen 52d871b
chore: remove git link to websockets library
iudeen 0be0e7c
chore: bump websockets requirement to >=10.4
iudeen 5673fa3
refactor: USER_AGENT is deprecated. Make changes to accommodate
iudeen b51c8c2
style: run black
iudeen c05759a
tests: added test (improve coverage)
iudeen b19f58a
tests: added test (improve coverage)
iudeen f03c77a
Merge branch 'encode:master' into feature/websocket-headers
iudeen 09bcd73
tests: added test (improve coverage) for WSProto
iudeen 321c8e6
Refactor feature/websocket-headers
Kludex da1f87f
remove unused imports
iudeen 8b545ad
add clarity in docs
iudeen afae8ed
remove repeated test
iudeen 1768b31
remove white space
iudeen 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 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 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 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 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 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
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.
This is not 100% true. I forgot to mention... The
Date
headers from thewebsockets
cannot be removed... 🤔Should we do something about it on the tests? It's on purpose... 🤔
It's a question, I'm still thinking.
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 what on tests? There is no way to remove date header in
websockets
I think.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.
I mean, I know, but the tests make us believe that we forgot about
Date
headers... 🤔