@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 โ
| Parameter | Type |
|---|---|
u | string |
Returns โ
boolean