Skip to content

@lelantos-org/sdk / core / isHttpUrl

Function: isHttpUrl() โ€‹

ts
function isHttpUrl(u): boolean;

Defined in: @lelantos-org/sdk/dist/core/url.d.ts:13

Whether u is an http(s) URL rather than a filesystem path or file:// href.

The dividing line for three separate decisions: whether to read bytes off disk or over the network, and whether the Cache API can key on it (it stores Requests, which must be http(s)).

Parameters โ€‹

ParameterType
ustring

Returns โ€‹

boolean

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub