Skip to content

Tankōbon / main/services/http-json / getHtml

Function: getHtml() ​

getHtml(url, options, source): Promise<string>

Defined in: main/services/http-json.ts:120

GETs a web page and returns its HTML. Throws "<source>: …" (translated) when the site is unreachable, times out, or answers anything but a success (a missing page is a 404).

Parameters ​

url ​

string

options ​

HttpOptions

source ​

string

Returns ​

Promise<string>