Fetch

Wrappers around the fetch function.

Functions

f
fetch_html(html_url: string): Promise<jsdom.JSDOM>

Fetch an HTML file via [[fetch_resource]] and parse the result into a DOM instance.

f
fetch_json(json_url: string): Promise<any>

Fetch an JSON file via [[fetch_resource]] and parse the result into an object.

f
fetch_type(resource_url: string): Promise<string>

Fetch the media type of the resource.