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

support modifying the resource download request #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OriHoch
Copy link

@OriHoch OriHoch commented Oct 2, 2018

Added an IXLoader interface method: modify_download_request, which can be used to modify the download url or http headers.

JVickery-TBS pushed a commit to JVickery-TBS/ckanext-xloader that referenced this pull request Jun 19, 2023
@@ -10,6 +10,19 @@ class IXloader(Interface):
The before_submit function, when implemented
"""

def modify_download_request(self, url, resource, api_key, headers):
""" Can be used to modify the http download request.
The headers parameter is a dict which should be modified directly.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should say "can be modified" rather than "should be modified".

@ThrawnCA
Copy link
Collaborator

@OriHoch This looks like it could proceed, but needs the merge conflict resolved.

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