Skip to content

Interface: Cdn ​

Defined in: fluent/cdn.ts:71

The fluent entry object with a CDN base bound, as returned by UnboundCdn.base. Every member is readonly and the object is frozen, so a shared entry point cannot be monkey-patched.

base remains available and returns another one, so several hosts can coexist in an app.

Extends ​

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

Inherited from ​

UnboundCdn.base


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

Inherited from ​

UnboundCdn.document


file ​

ts
readonly file: (uuid) => FileChain;

Defined in: fluent/cdn.ts:73

Starts a single-file chain.

Parameters ​

ParameterType
uuidstring

Returns ​

FileChain


gif2video ​

ts
readonly gif2video: (uuid) => Gif2VideoChain;

Defined in: fluent/cdn.ts:77

Starts an on-the-fly gif2video url chain.

Parameters ​

ParameterType
uuidstring

Returns ​

Gif2VideoChain


group ​

ts
readonly group: (id) => GroupChain;

Defined in: fluent/cdn.ts:75

Starts a group root chain from a uuid~count id or parsed id.

Parameters ​

ParameterType
idGroupInput

Returns ​

GroupChain


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

Inherited from ​

UnboundCdn.parse


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

Inherited from ​

UnboundCdn.proxy


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

Inherited from ​

UnboundCdn.video