-
Notifications
You must be signed in to change notification settings - Fork 11
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
Get item links #16
base: master
Are you sure you want to change the base?
Get item links #16
Conversation
This branch has conflicts that must be resolved. |
@@ -59,3 +60,107 @@ def are_folders(urls: List) -> bool: | |||
|
|||
def are_files(urls: List) -> bool: | |||
pass | |||
|
|||
def get_links_from_response(response) -> dict: |
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.
-> Dict
else: | ||
return parse_link_header(link_header, response.url) | ||
|
||
def parse_link_header(link_header: str, item_url) -> Dict: |
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.
Do you prefer a Dict instead of Links here?
@halloju What server implementation do you test against? |
issue 7