CdnExtension

interface CdnExtension

Interface for CDN application-oriented extension literals (e.g. dt'2026-07-27T16:00:00Z').

Inheritors

Properties

Link copied to clipboard
abstract val identifier: String

The extension identifier, e.g., "dt", "ip", "h", "b64", "hash", "b1", "t1", "float".

Functions

Link copied to clipboard
abstract fun format(item: DataItem, options: CdnGeneratorOptions, indent: Int = 0): String?

Formats a DataItem into CDN extension syntax, or returns null if not applicable.

Link copied to clipboard
abstract fun parseLiteral(content: String, delimiter: Char): DataItem

Parses the string content of an extension literal into a DataItem.