Skip to content

Add custom header support to websocket client - #4607

Draft
borysvorona wants to merge 7 commits into
aio-libs:masterfrom
borysvorona:feature/ws-client-headers
Draft

Add custom header support to websocket client#4607
borysvorona wants to merge 7 commits into
aio-libs:masterfrom
borysvorona:feature/ws-client-headers

Conversation

@borysvorona

@borysvorona borysvorona commented Mar 3, 2020

Copy link
Copy Markdown
Member

Add custom header support to ClientWebSocketResponse (#2053)

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@borysvorona
borysvorona requested a review from asvetlov as a code owner March 3, 2020 17:05
@borysvorona borysvorona changed the title Add custom header support to websocket client (#2053) Add custom header support to websocket client Mar 3, 2020
@asvetlov

This comment has been minimized.

@codecov-io

codecov-io commented Mar 3, 2020

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.51%. Comparing base (f19f1f4) to head (602d65a).
⚠️ Report is 6729 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4607      +/-   ##
==========================================
+ Coverage   97.50%   97.51%   +0.01%     
==========================================
  Files          43       43              
  Lines        8988     8988              
  Branches     1418     1418              
==========================================
+ Hits         8764     8765       +1     
+ Misses        103      102       -1     
  Partials      121      121              
Flag Coverage Δ
unit 97.35% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@borysvorona
borysvorona requested a review from webknjaz as a code owner March 4, 2020 09:06
@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label Mar 4, 2020
@borysvorona

Copy link
Copy Markdown
Member Author

@asvetlov, could you review that?

@borysvorona borysvorona added this to the 4.0 milestone Mar 12, 2020

@asvetlov asvetlov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a feeling that wrong headers are exposed

Comment thread aiohttp/client.py
autoclose,
autoping,
self._loop,
headers=real_headers,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are ws.headers for HTTP client headers sent to a server or server headers returned to the client back?

@CLAassistant

This comment was marked as outdated.

@webknjaz

Copy link
Copy Markdown
Member

@borysvorona this needs rebasing + addressing the comments. Turning it into a draft for now.

@webknjaz
webknjaz marked this pull request as draft September 20, 2022 13:46
@Dreamsorcerer Dreamsorcerer added pr-unfinished The PR is unfinished and may need a volunteer to complete it and removed backport-3.10 labels Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR pr-unfinished The PR is unfinished and may need a volunteer to complete it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants