Interface: UnboundCdn
Defined in: fluent/cdn.ts:41
What the cdn object offers before a CDN base is bound: the starters that do not need one. Conversion chains emit a path with no host by design, a proxy chain takes its endpoint as an argument, and a parsed url carries its own base.
file, group and gif2video are absent on purpose — they cannot produce a url without a host, so reaching for one here is a compile error. Call UnboundCdn.base first; it hands back a Cdn with the full surface.
Note that the object's runtime shape is deliberately wider than this type: the three absent starters exist as stubs that throw a message naming base, so a JavaScript caller gets an explanation rather than "undefined is not a function". 'file' in cdn is therefore true — do not use key presence to detect whether a base is bound.
Extended by
Properties
base
readonly base: (cdnBase) => Cdn;Defined in: fluent/cdn.ts:52
Binds the host to deliver from and returns the full entry object. The receiver is untouched — every object here is frozen.
Parameters
| Parameter | Type |
|---|---|
cdnBase | string |
Returns
Example
const my = cdn.base(prefixedCdnBase('demopublickey'))
my.file(uuid).preview(800, 600).hrefdocument
readonly document: (uuid) => DocumentChain;Defined in: fluent/cdn.ts:60
Starts a document conversion path chain (REST convert API) — a path, so no host is involved.
Parameters
| Parameter | Type |
|---|---|
uuid | string |
Returns
parse
readonly parse: (url) => ParsedChain;Defined in: fluent/cdn.ts:54
Parses any CDN url into the matching chain — see parse.
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
proxy
readonly proxy: (endpoint, sourceUrl) => ProxyChain;Defined in: fluent/cdn.ts:56
Starts a delivery-proxy chain; the endpoint is this call's argument, not the bound base.
Parameters
| Parameter | Type |
|---|---|
endpoint | string |
sourceUrl | string |
Returns
video
readonly video: (uuid) => VideoChain;Defined in: fluent/cdn.ts:58
Starts a video conversion path chain (REST convert API) — a path, so no host is involved.
Parameters
| Parameter | Type |
|---|---|
uuid | string |