Skip to content

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 ​

ts
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 ​

ParameterType
cdnBasestring

Returns ​

Cdn

Example ​

ts
const my = cdn.base(prefixedCdnBase('demopublickey'))
my.file(uuid).preview(800, 600).href

document ​

ts
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 ​

ParameterType
uuidstring

Returns ​

DocumentChain


parse ​

ts
readonly parse: (url) => ParsedChain;

Defined in: fluent/cdn.ts:54

Parses any CDN url into the matching chain — see parse.

Parameters ​

ParameterType
urlstring

Returns ​

ParsedChain


proxy ​

ts
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 ​

ParameterType
endpointstring
sourceUrlstring

Returns ​

ProxyChain


video ​

ts
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 ​

ParameterType
uuidstring

Returns ​

VideoChain