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
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
Cdn
Example
const my = cdn.base(prefixedCdnBase('demopublickey'))
my.file(uuid).preview(800, 600).hrefInherited from
document
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
Inherited from
file
readonly file: (uuid) => FileChain;Defined in: fluent/cdn.ts:73
Starts a single-file chain.
Parameters
| Parameter | Type |
|---|---|
uuid | string |
Returns
gif2video
readonly gif2video: (uuid) => Gif2VideoChain;Defined in: fluent/cdn.ts:77
Starts an on-the-fly gif2video url chain.
Parameters
| Parameter | Type |
|---|---|
uuid | string |
Returns
group
readonly group: (id) => GroupChain;Defined in: fluent/cdn.ts:75
Starts a group root chain from a uuid~count id or parsed id.
Parameters
| Parameter | Type |
|---|---|
id | GroupInput |
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
Inherited from
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
Inherited from
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 |