-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Allow passing extra headers to 'Connection.api_request'. #2509
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.api_request'. #2509
Conversation
Needed to support oddball out-of-band encryption headers for 'Blob.rewrite'.
dhermes
left a comment
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.
LGTM
core/google/cloud/connection.py
Outdated
| :param content_type: The proper MIME type of the data provided. Default | ||
| is None. | ||
| :type headers: dist |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| def api_request(self, method, path, query_params=None, | ||
| data=None, content_type=None, | ||
| data=None, content_type=None, headers=None, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
…-headers Allow passing extra headers to 'Connection.api_request'.
Allow passing extra headers to 'Connection.api_request'.
Needed to support oddball out-of-band encryption headers for
Blob.rewrite.