Skip to content

Use dispatch table for retrieving fetch functions#54

Open
conjunctive wants to merge 1 commit into
Chobbes:masterfrom
conjunctive:dispatch-table
Open

Use dispatch table for retrieving fetch functions#54
conjunctive wants to merge 1 commit into
Chobbes:masterfrom
conjunctive:dispatch-table

Conversation

@conjunctive

Copy link
Copy Markdown

By parsing the URL with url-generic-parse-url, we can leverage the host as a key in a hash-table.
We can use that hash-table to store references to the fetching functions.
By exposing a data-structure, we provide more flexibility to users and ease the process of adding upstream support for new sites.

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.

1 participant