Skip to content
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

Allow passing extra headers to Connection.request #36

Merged
merged 8 commits into from
Dec 6, 2022

Conversation

brownj85
Copy link
Collaborator

@brownj85 brownj85 commented Dec 2, 2022

Context:
Cannot pass extra headers when using Connection.request().

Description of the Change:
Adds an optional headers argument to Connection.request() and that is added to request
headers

Benefits:

Possible Drawbacks:

Related GitHub Issues:

@github-actions

This comment was marked as resolved.

Copy link
Collaborator

@Mandrenkov Mandrenkov left a comment

Choose a reason for hiding this comment

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

Thanks, @brownj85! This would be a useful feature. 👍

xcc/connection.py Show resolved Hide resolved
tests/test_connection.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@Mandrenkov Mandrenkov left a comment

Choose a reason for hiding this comment

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

Thanks for the update, @brownj85! Just a few small things to sort out before we merge.

xcc/connection.py Outdated Show resolved Hide resolved
xcc/connection.py Show resolved Hide resolved
tests/test_connection.py Outdated Show resolved Hide resolved
tests/test_connection.py Outdated Show resolved Hide resolved
tests/test_connection.py Outdated Show resolved Hide resolved
tests/test_connection.py Outdated Show resolved Hide resolved
brownj85 and others added 2 commits December 6, 2022 11:08
Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com>
Co-authored-by: Mikhail Andrenkov <Mandrenkov@users.noreply.github.com>
Copy link
Collaborator

@Mandrenkov Mandrenkov left a comment

Choose a reason for hiding this comment

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

Thanks, much appreciated! 🎉

@brownj85 brownj85 merged commit 70fa3c8 into main Dec 6, 2022
@brownj85 brownj85 deleted the add-requests-arg-to-xcc-connection branch December 6, 2022 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants