@lelantos-org/sdk / primitives / isHttpUrl
Function: isHttpUrl()
ts
function isHttpUrl(u): boolean;Defined in: @lelantos-org/sdk/dist/core/url.d.ts:11
Whether u is an http(s) URL rather than a filesystem path or file:// href. Decides whether bytes are read from disk or over the network, and whether the Cache API can key on the URL (it stores Requests, which must be http(s)).
Parameters
| Parameter | Type |
|---|---|
u | string |
Returns
boolean