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.
By parsing the URL with
url-generic-parse-url
, we can leverage thehost
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.