-
Notifications
You must be signed in to change notification settings - Fork 92
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 support for custom headers for HTTP #149
Conversation
Codecov Report
@@ Coverage Diff @@
## master #149 +/- ##
==========================================
+ Coverage 84.05% 84.13% +0.07%
==========================================
Files 44 44
Lines 4133 4141 +8
==========================================
+ Hits 3474 3484 +10
+ Misses 659 657 -2
Continue to review full report at Codecov.
|
Hi, please add a test case to this feature, thanks. |
LGTM, approved, thanks for the contribution @ermeaney ! But I saw there was a conflict, I think you should rebase the commits so we can merge it. |
Add THttpHeaderFactory to allow client to send custom headers fix flake8 errors THttpClient constructor defaults THttpHeaderFactory to None THttpHeaderFactory get_headersreturns empty dict() instead of None updates from PR review
Our thrift implementation needs to have some custom headers in the HTTP call, and since the implementation was almost there I updated the make_client function to support it